#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
<<
"-> inv_e[upper](as(wxf)) = " <<
eve::inv_e[eve::upper](
eve::as(wxf)) << std::endl
<<
"-> inv_e[lower](as(wxf)) = " <<
eve::inv_e[eve::lower](
eve::as(wxf)) << std::endl
<< std::setprecision(17)
<<
"-> inv_e[upper](as(wxd)) = " <<
eve::inv_e[eve::upper](
eve::as(wxd)) << std::endl
<<
"-> inv_e[lower](as(wxd)) = " <<
eve::inv_e[eve::lower](
eve::as(wxd)) << std::endl;
float xf;
double xd;
std::cout << "---- scalar" << std::endl
std::cout << "-> constexpr inv_e = " << constexpr_inv_e<float>() << std::endl;
return 0;
}
Wrapper for SIMD registers.
Definition wide.hpp:86