Callable object computing imaginary part of values.
#include <eve/module/complex.hpp>
#include <eve/wide.hpp>
#include <iostream>
using z_t = eve::as_complex_t<wide_ft>;
int main()
{
z_t z{ref, imf};
std::cout
<< "---- simd" << '\n'
<< "<- z = " << z << '\n'
auto scz = eve::as_complex_t<float>(1, 2);
std::cout
<< "---- scalar" << '\n'
<< "<- scz = " << scz << '\n'
<<
"-> imag(scz) = " <<
eve::imag(scz) <<
'\n';
return 0;
}
constexpr callable_imag_ imag
Callable object computing imaginary part of values.
Definition: imag.hpp:51
constexpr callable_pi_ pi
Callable object computing the constant .
Definition: pi.hpp:49
Lightweight type-wrapper.
Definition: as.hpp:29
Wrapper for SIMD registers.
Definition: wide.hpp:65