Computes the IEEE NaN constant.
Defined in Header
#include <eve/module/core.hpp>
{
template< eve::floating_value T >
}
constexpr callable_nan_ nan
Computes the IEEE NaN constant.
Definition: nan.hpp:53
Definition: all_of.hpp:22
Lightweight type-wrapper.
Definition: as.hpp:29
Parameters
x
: Type wrapper instance embedding the type of the constant.
Return value
The call eve::nan(as<T>())
is semantically equivalent to T(0.0/0.0)
.
#include <eve/module/core.hpp>
#include <eve/wide.hpp>
#include <iostream>
int main()
{
wide_ft wxf;
wide_it wxi;
std::cout << "---- simd" << std::endl
double xf;
std::int16_t xi;
std::cout << "---- scalar" << std::endl
<<
"-> nan(as<std::int16_t>()) = " <<
eve::nan(
eve::as(std::int16_t())) << std::endl
return 0;
}
Wrapper for SIMD registers.
Definition: wide.hpp:65