#include <eve/module/math.hpp>
#include <iostream>
int main()
{
eve::wide wf = {0.0, 0.25, 0.4, 2.2, -0.0, -0.25, -0.4, -2.2};
wf *= 180;
std::cout << "<- wf = " << wf << "\n";
std::cout <<
"-> cotd(wf) = " <<
eve::cotd(wf) <<
"\n";
std::cout <<
"-> cotd[wf != -2.0f](wf) = " <<
eve::cotd[wf != -2.0f](wf) <<
"\n";
std::cout <<
"-> cotd[quarter_circle](wf)= " <<
eve::cotd[eve::quarter_circle](wf) <<
"\n";
}
Conditional expression ignoring the k last lanes from a eve::simd_value.
Definition conditional.hpp:332
Wrapper for SIMD registers.
Definition wide.hpp:86