◆ is_unordered
Callable object computing the is_unordered logical value. Required header: Members Functions
template< value T, value U > auto operator()( T x, U y ) const noexcept requires compatible< T, U >;
Parameters
Return value The call: logical<T> r = is_unordered(x, y);
constexpr callable_is_unordered_ is_unordered Callable object computing the is_unordered logical value. Definition: is_unordered.hpp:85 is semantically equivalent to: logical<T> r;
Definition: value.hpp:103 Definition: value.hpp:113 constexpr callable_is_nan_ is_nan Callable object computing the is_nan logical value. Definition: is_nan.hpp:85 auto operator[]( conditional_expression auto cond ) const noexcept;
Higher-order function generating a masked version of eve::is_unordered Parameters
Return value A Callable object so that the expression Supported decoratorsno decorators are supported ExampleSee it live on Compiler Explorer #include <eve/function/is_unordered.hpp>
#include <eve/wide.hpp>
#include <eve/constant/inf.hpp>
#include <eve/constant/minf.hpp>
#include <eve/constant/nan.hpp>
#include <iostream>
using wide_ft = eve::wide<float, eve::fixed<8>>;
int main()
{
wide_ft pf = {0.0f, 1.0f, -1.0f, -2.0f, 2.0f,
wide_ft qf = {4.0f, 1.0f, -1.0f, 0.0f, -0.0f,
std::cout << "---- simd" << '\n'
<< "<- pf = " << pf << '\n'
<< "<- qf = " << qf << '\n'
float xf = 4.0f;
float yf = -1.0f;
std::cout << "---- scalar" << '\n'
<< "<- xf = " << xf << '\n'
<< "<- yf = " << yf << '\n'
return 0;
}
constexpr callable_minf_ minf Callable object computing the negative infinity value. Definition: minf.hpp:55 constexpr callable_inf_ inf Callable object computing the infinity ieee value. Definition: inf.hpp:54 |