◆ is_not_imag
Callable object computing the is_not_imag logical value. Required header: Members Functions
Definition: value.hpp:83 Parameters
Return value The call: auto r = is_not_imag(x);
constexpr callable_is_not_imag_ is_not_imag Callable object computing the is_not_imag logical value. Definition: is_not_imag.hpp:83 is semantically equivalent to: auto r = is_nez(real(x));
constexpr callable_is_nez_ is_nez Callable object computing the "not equal to zero" predicate. Definition: is_nez.hpp:80 auto operator[]( conditional_expression auto cond ) const noexcept;
Higher-order function generating a masked version of eve::is_not_imag 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_not_imag.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, -0.0f, -2.0f};
std::cout << "---- simd" << '\n'
<< "<- pf = " << pf << '\n'
float xf = 1.0f;
std::cout << "---- scalar" << '\n'
<< "<- xf = " << xf << '\n'
return 0;
}
|