Computes the squared sqr_absolute value of the parameter.
{
}
constexpr auto sqr_abs
Computes the squared sqr_absolute value of the parameter.
Definition sqr_abs.hpp:60
typename as_real_type< T >::type as_real_type_t
Compute the real type associated to a Cayley-Dickson-like type.
Definition traits.hpp:96
Main KYOSU namespace.
Definition cinf.hpp:13
#include <eve/wide.hpp>
#include <iostream>
#include <kyosu/kyosu.hpp>
int main()
{
std::cout << "Real: ";
std::cout << 72.9f <<
" -> " <<
sqr_abs(72.9f) <<
"\n";
std::cout << "Complex: ";
std::cout << "Quaternion: ";
std::cout << kyosu::quaternion_t<double>(1., 2., 3., 4.) << " -> "
std::cout << "SIMD: ";
using wc_t = eve::wide<kyosu::complex_t<double>, eve::fixed<2>>;
<< "\n";
return 0;
}
as_cayley_dickson_n_t< 2, T > complex_t
Type alias for complex numbers.
Definition complex.hpp:27
as_cayley_dickson_n_t< 4, T > quaternion_t
Type alias for quaternion numbers.
Definition quaternion.hpp:24