◆ is_ngtz
Callable object computing the "not greater than zero" predicate. Required header: Members Functions
Definition: value.hpp:31 Parameters
Return value Returns the elementwise The result type is auto operator[]( conditional_expression auto cond ) const noexcept;
Higher-order function generating a masked version of eve::is_ngtz 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_ngtz.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_ngtz_ is_ngtz Callable object computing the "not greater than zero" predicate. Definition: is_ngtz.hpp:73 |