◆ count_true
Callable object computing the count_true value. Required header: Members Functions
Definition: value.hpp:31 Parameters
Return value an int value: the number of non zero elements in Supported decoratorsno decorators are supported ExampleSee it live on Compiler Explorer #include <eve/function/count_true.hpp>
#include <eve/wide.hpp>
#include <iostream>
using wide_ft = eve::logical<eve::wide<float, eve::fixed<4>>>;
int main()
{
eve::logical<float> xf = true;
std::cout << "---- scalar" << '\n'
<< "<- xf = " << xf << '\n'
wide_ft pf = {true,false,true,false};
std::cout << "---- simd" << '\n'
<< "<- pf = " << pf << '\n'
return 0;
}
constexpr callable_count_true_ count_true Callable object computing the count_true value. Definition: count_true.hpp:54 |