#include <eve/module/math.hpp>
#include <eve/wide.hpp>
#include <iostream>
#include <iomanip>
template<typename T>
int main()
{
wide_ft wxf([](
auto i,
auto){
return eve::is_odd(i)?-1.f:1.f; ; });
wide_dt wxd;
std::cout << "---- simd" << std::setprecision(9) << std::endl
<< std::setprecision(17)
float xf;
double xd;
std::cout << "---- scalar" << std::endl
std::cout << "---- masked" << std::endl
<< "<- wxf = " << wxf << std::endl
std::cout << "-> constexpr catalan = " << constexpr_catalan<float>() << std::endl;
return 0;
}
constexpr auto is_odd
elementwise callable returning a logical true if and only if the element value is odd.
Definition is_odd.hpp:73
Conditional expression ignoring the k first lanes from a eve::simd_value.
Definition conditional.hpp:459
Wrapper for SIMD registers.
Definition wide.hpp:70