◆ eps
Callable object computing the machine epsilon. Required header:
Parameters
Return value the call
ExampleSee it live on Compiler Explorer #include <eve/function/eps.hpp>
#include <eve/constant/bitincrement.hpp>
#include <eve/constant/eps.hpp>
#include <eve/wide.hpp>
#include <iomanip>
using wide_ft = eve::wide<float, eve::fixed<4>>;
using wide_it = eve::wide<std::int16_t, eve::fixed<4>>;
int main()
{
wide_it pi = {-1, 2, -3, -32};
std::cout << "---- simd" << '\n'
<< "<- pf = " << std::setprecision(12) << pf << '\n'
float xf = 0.0f;
std::int16_t xi = -3;
std::cout << "---- scalar" << '\n'
<< "<- xf = " << xf << '\n'
<< "<- xi = " << xi << '\n'
return 0;
}
constexpr callable_eps_ eps Callable object computing the machine epsilon. Definition: eps.hpp:60 |