Computes the positive difference between the two parameters.
{
template< eve::ordered_value T, eve::ordered_value U >
T
fdim(T x, U y)
noexcept;
}
constexpr callable_fdim_ fdim
Computes the positive difference between the two parameters.
Definition: fdim.hpp:65
#include <eve/module/core.hpp>
#include <eve/wide.hpp>
#include <iostream>
int main()
{
std::cout << "---- simd" << '\n'
<< "<- pf = " << pf << '\n'
<< "<- qf = " << qf << '\n'
<<
"-> fdim(pf, qf) = " <<
eve::fdim(pf, qf) <<
'\n'
<< '\n';
std::cout << "---- scalar" << '\n'
<< "<- xf = " << xf << '\n'
<< "<- yf = " << yf << '\n'
<<
"-> fdim(xf, yf) = " <<
eve::fdim(xf, yf) <<
'\n'
<< '\n';
return 0;
}
constexpr callable_valmax_ valmax
Computes the the greatest representable value.
Definition: valmax.hpp:55
Lightweight type-wrapper.
Definition: as.hpp:29
Wrapper for SIMD registers.
Definition: wide.hpp:65