◆ bit_mask
Callable object computing a bit mask. Required header: Members Functions
Definition: value.hpp:31 Parameters
Return value For each elementwise of
auto operator[]( conditional_expression auto cond ) const noexcept;
Higher-order function generating a masked version of eve::bit_mask Parameters
Return value A Callable object so that the expression Supported decoratorsno decorators are supported ExampleSee it live on Compiler Explorer #include <eve/function/bit_mask.hpp>
#include <eve/constant/inf.hpp>
#include <eve/wide.hpp>
#include <iostream>
using wide_it = eve::wide<std::uint32_t, eve::fixed<8>>;
using wide_ft = eve::wide<float, eve::fixed<8>>;
int main()
{
wide_it pi = {14, 1, 3, 0, 16, 23000, 0, 27};
wide_ft pf = {14.0, 1.0, -0.0, 0.0, 16.0, 23000.0, eve::inf(eve::as<float>()), 27.0};
std::cout << "---- simd" << '\n'
<< "<- pf = " << pf << '\n'
std::uint32_t xf = 48;
std::cout << "---- scalar" << '\n'
<< "<- xf = " << xf << '\n'
return 0;
}
constexpr callable_bit_mask_ bit_mask Callable object computing a bit mask. Definition: bit_mask.hpp:75 constexpr callable_inf_ inf Callable object computing the infinity ieee value. Definition: inf.hpp:54 |