◆ is_imag
Callable object computing the is_imag logical value. Required header: Members Functions
Definition: value.hpp:83 Parameters
Return value The call: auto r = is_imag(x);
constexpr callable_is_imag_ is_imag Callable object computing the is_imag logical value. Definition: is_imag.hpp:81 is semantically equivalent to: auto operator[]( conditional_expression auto cond ) const noexcept;
Higher-order function generating a masked version of eve::is_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_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;
}
|