Callable object computing the simultaneous computation of sin an cos from an argument in \(\pi\) multiples.
{
template< eve::floating_value T >
}
constexpr callable_sinpicospi_ sinpicospi
Callable object computing the simultaneous computation of sin an cos from an argument in multiples.
Definition: sinpicospi.hpp:66
Definition: all_of.hpp:22
#include <eve/module/math.hpp>
#include <eve/wide.hpp>
#include <iostream>
int main(){
std::cout << "---- simd" << '\n'
<< "<- pf = " << pf << '\n'
<< "-> sinpicospi(pf) = [" << '\n'
<< " " << s << ", \n"
<< " " << c << '\n'
<< " ]\n";
float xf = 2.3;
std::cout << "---- scalar" << '\n'
<< "<- xf = " << xf << '\n'
<< "-> sinpicospi(xf) = [" << ss << ", " << sc << "]\n";
return 0;
}
constexpr callable_inf_ inf
Computes the infinity ieee value.
Definition: inf.hpp:58
Lightweight type-wrapper.
Definition: as.hpp:29
Wrapper for SIMD registers.
Definition: wide.hpp:65