#include <eve/module/math.hpp>
#include <iostream>
int main()
{
eve::wide wf = {0.0f, -0.0f, -1.0f, 1.0f, 2.0f,
std::cout << "<- wf = " << wf << "\n";
std::cout << "<- wi = " << wi << "\n";
std::cout << "<- wu = " << wu << "\n";
std::cout <<
"-> exp2(wf) = " <<
eve::exp2(wf) <<
"\n";
std::cout <<
"-> exp2(wi) = " <<
eve::exp2(wi) <<
"\n";
std::cout <<
"-> exp2(wu) = " <<
eve::exp2(wu) <<
"\n";
std::cout <<
"-> exp2[wf != 2.0f](wf) = " <<
eve::exp2[wf != 2.0f](wf) <<
"\n";
std::cout <<
"-> exp2[wi != 4](wi) = " <<
eve::exp2[wi != -2](wi) <<
"\n";
std::cout <<
"-> exp2[wu != 2u](wu) = " <<
eve::exp2[wu != 2u](wu) <<
"\n";
}
constexpr auto nan
Computes the IEEE quiet NaN constant.
Definition nan.hpp:67
constexpr auto inf
Computes the infinity ieee value.
Definition inf.hpp:66
constexpr auto minf
Computes the -infinity ieee value.
Definition minf.hpp:66
Lightweight type-wrapper.
Definition as.hpp:29
Conditional expression ignoring the k last lanes from a eve::simd_value.
Definition conditional.hpp:332
Wrapper for SIMD registers.
Definition wide.hpp:70