Callable object computing the quadrant value.
Defined in Header
#include <eve/module/math.hpp>
{
template< eve::floating_value T >
}
constexpr callable_quadrant_ quadrant
Callable object computing the quadrant value.
Definition: quadrant.hpp:59
Parameters
n
: ordered integral value. Must be of integral type or a [flint](eve::is_flint) value
Return value
return a value of the same type as n
containing the quadrant number where n
(supposed an integer) lies.
#include <eve/module/math.hpp>
#include <eve/module/math.hpp>
#include <eve/wide.hpp>
#include <iostream>
int main()
{
wide_ft pf = {10.0f, 9.0f, -3.0f, 1.0f};
std::cout << "---- simd" << '\n'
<< "<- pf = " << pf << '\n'
float xf = 15.0f;
std::cout << "---- scalar" << '\n'
<< "<- xf = = " << xf << '\n'
return 0;
}
Wrapper for SIMD registers.
Definition: wide.hpp:65