E.V.E  0.1-beta

◆ logical_not

eve::logical_not = {}
inlineconstexpr

Callable object computing the logical NOT operation.

Required header: #include <eve/function/logical_not.hpp>

Members Functions

Member Effect
operator() the logical NOT operation

auto operator()( value auto x ) const noexcept;
Definition: value.hpp:31

Parameters

x: value.

Return value

Computes the logical NOT of the parameter.

the call logical_not(x) is semantically equivalent to is_eqz(x). Infix notation can be used with !x

Supported decorators

no decorators are supported

Example

See it live on Compiler Explorer

#include <eve/function/logical.hpp>
#include <eve/wide.hpp>
#include <iostream>
int main()
{
wide_ft pf = {3.0f, 0.0f, -3.0f, -0.0};
std::cout << "---- simd" << '\n'
<< " <- pf = " << pf << '\n'
<< " -> eve::logical_not(pf) = " << eve::logical_not(pf) << '\n';
std::int32_t xf = 3, yf = 0;
std::cout << "---- scalar" << '\n'
<< " xf = " << xf << '\n'
<< " yf = " << yf << '\n'
<< " -> eve::logical_not(xf) = " << eve::logical_not(xf) << '\n'
<< " -> eve::logical_not(yf) = " << eve::logical_not(yf) << '\n';
return 0;
}
constexpr callable_logical_not_ logical_not
Callable object computing the logical NOT operation.
Definition: logical_not.hpp:62
Wrapper for SIMD registers.
Definition: wide.hpp:65