◆ logical_and
Callable object computing the logical AND operation. Required header: Members Functions
template< value T, value U > auto operator()( T x, U y ) const noexcept requires compatible< T, U >;
Parameters
Return value Computes logical AND of the two parameters following the logical operations semantic. the call Supported decoratorsno decorators are supported ExampleSee it live on Compiler Explorer #include <eve/function/logical.hpp>
#include <eve/wide.hpp>
#include <iostream>
using wide_ft = eve::logical<eve::wide<float, eve::fixed<4>>>;
int main()
{
wide_ft pf = {true,true,false,false};
wide_ft qf = {true,false,true,false};
std::cout << "---- simd" << '\n'
<< " <- pf = " << pf << '\n'
<< " <- qf = " << qf << '\n'
std::cout << "---- scalar" << '\n'
<< " xf = " << xf << '\n'
<< " yf = " << yf << '\n'
return 0;
}
constexpr callable_logical_and_ logical_and Callable object computing the logical AND operation. Definition: logical_and.hpp:65 |