Computes the the machine epsilon.
Defined in Header
#include <eve/module/core.hpp>
{
template< eve::value T >
T $name$(
as<T> x)
noexcept;
}
Lightweight type-wrapper.
Definition: as.hpp:29
Parameters
x
: Type wrapper instance embedding the type of the constant.
Return value
the call eve::eps(as<T>())
returns elementwise, the smallest positive value x
of the type such that 1+x != x
.
#include <eve/module/core.hpp>
#include <eve/wide.hpp>
#include <iostream>
int main()
{
wide_ft wxf;
wide_dt wxi;
std::cout << "---- simd" << '\n'
float xf;
double xd;
std::cout << "---- scalar" << '\n'
return 0;
}
constexpr callable_eps_ eps
Computes the the machine epsilon.
Definition: eps.hpp:63
Wrapper for SIMD registers.
Definition: wide.hpp:65