◆ is_eqz
Callable object computing the equality to zero predicate. Required header: Members Functions
Definition: value.hpp:31 Parameters
Return value Returns the logical value containing the elementwise equality test result between The result type is auto operator[]( conditional_expression auto cond ) const noexcept;
Higher-order function generating a masked version of eve::is_eqz Parameters
Return value A Callable object so that the expression Supported decoratorsno decorators are supported ExampleSee it live on Compiler Explorer #include <eve/function/predicate.hpp>
#include <eve/wide.hpp>
#include <iostream>
using wide_ft = eve::wide<float, eve::fixed<4>>;
int main()
{
wide_ft pf = {0.0f, 1.0f, -1.0f, -0.0f};
std::cout << "---- simd" << '\n'
<< "<- pf = " << pf << '\n'
float xf = 1.0f;
std::cout << "---- scalar" << '\n'
<< "<- xf = " << xf << '\n'
return 0;
}
constexpr callable_is_eqz_ is_eqz Callable object computing the equality to zero predicate. Definition: is_eqz.hpp:77 |