Callable object computing a complex from its polar representatione.
#include <eve/module/complex.hpp>
#include <eve/wide.hpp>
#include <iostream>
int main()
{
wide_ft r = { 0.0f, 1.0f, 2.0f, 3.9f};
std::cout
<< "---- simd" << '\n'
<< "<- r = " << r << '\n'
<< "<- t = " << t << '\n'
<<
"-> polar(r, t) = " <<
eve::polar(r, t) <<
'\n';
std::cout
<< "---- scalar" << '\n'
return 0;
}
constexpr callable_polar_ polar
Callable object computing a complex from its polar representatione.
Definition: polar.hpp:53
constexpr callable_nan_ nan
Computes the IEEE NaN constant.
Definition: nan.hpp:53
constexpr callable_pi_ pi
Callable object computing the constant .
Definition: pi.hpp:49
constexpr callable_pio_2_ pio_2
Callable object computing the constant .
Definition: pio_2.hpp:49
Lightweight type-wrapper.
Definition: as.hpp:29
Wrapper for SIMD registers.
Definition: wide.hpp:65