Computes the unit in the last place distance of its arguments. Defined in Header
{
template< eve::value T, eve::value U >
}
constexpr callable_ulpdist_ ulpdist
Computes the unit in the last place distance of its arguments. Defined in Header
Definition: ulpdist.hpp:62
typename eve::detail::common_value_impl< void, Ts... >::type common_value_t
Computes the SIMD-compatible common type between all Ts.
Definition: common_value.hpp:50
#include <eve/module/core.hpp>
#include <eve/wide.hpp>
#include <iostream>
#include <iomanip>
int main()
{
std::cout << "---- simd" << std::setprecision(9) << '\n'
<<
" <- pi = " <<
pi <<
'\n'
<< " <- qi = " << qi << '\n'
std::uint32_t xi = 3, yi = 7;
std::cout << "---- scalar" << '\n'
<< " xi = " << xi << '\n'
<< " yi = " << yi << '\n'
<<
" -> ulpdist(xi, yi) = " <<
eve::ulpdist(xi, yi) <<
'\n';
return 0;
}
constexpr callable_eps_ eps
Computes the the machine epsilon.
Definition: eps.hpp:63
constexpr callable_smallestposval_ smallestposval
Computes the smallest normal positive value.
Definition: smallestposval.hpp:59
constexpr callable_inf_ inf
Computes the infinity ieee value.
Definition: inf.hpp:58
constexpr callable_pi_ pi
Callable object computing the constant .
Definition: pi.hpp:49
Lightweight type-wrapper.
Definition: as.hpp:29
Wrapper for SIMD registers.
Definition: wide.hpp:65