#include <eve/module/math.hpp>
#include <eve/wide.hpp>
#include <iostream>
#include <iomanip>
template<typename T>
int main()
{
wide_ft wxf;
wide_dt wxd;
std::cout << "---- simd" << std::setprecision(9) << std::endl
<<
"-> cos_1[upper](as(wxf)) = " <<
eve::cos_1[eve::upper](
eve::as(wxf)) << std::endl
<<
"-> cos_1[lower](as(wxf)) = " <<
eve::cos_1[eve::lower](
eve::as(wxf)) << std::endl
<< std::setprecision(17)
<<
"-> cos_1[upper](as(wxd)) = " <<
eve::cos_1[eve::upper](
eve::as(wxd)) << std::endl
<<
"-> cos_1[lower](as(wxd)) = " <<
eve::cos_1[eve::lower](
eve::as(wxd)) << std::endl;
float xf;
double xd;
std::cout << "---- scalar" << std::endl
std::cout << "-> constexpr cos_1 = " << constexpr_cos_1<float>() << std::endl;
return 0;
}
Wrapper for SIMD registers.
Definition wide.hpp:70