E.V.E
v2023.02.15
Loading...
Searching...
No Matches
◆
none
callable_none_ eve::none = {}
inline
constexpr
Header file
#include <eve/module/core.hpp>
Callable Signatures
namespace
eve
{
// Regular overloads
constexpr
auto
none
(
logical_value
auto
x)
noexcept
;
// 1
constexpr
auto
none
(
top_bits
auto
t)
noexcept
;
// 1
// Lanes masking
constexpr
auto
none
[
conditional_expr
auto
c](
/* any of the above overloads */
)
noexcept
;
// 2
constexpr
auto
none
[
logical_value
auto
m](
/* any of the above overloads */
)
noexcept
;
// 2
}
eve::conditional_expr
Specifies that a type is a Conditional Expression.
Definition
conditional.hpp:28
eve::logical_value
The concept logical_value<T> is satisfied if and only if T satisfies eve::value and the element type ...
Definition
value.hpp:132
eve::none
constexpr callable_none_ none
Computes a bool value which is true if and only if all elements of x are 0.
Definition
none.hpp:57
eve
EVE Main Namespace.
Definition
abi.hpp:18
eve::top_bits
The cheapest to get bitset for simd logical.
Definition
forward.hpp:16
Parameters
x
:
argument
.
t
:
top bits
.
c
:
Conditional expression
masking the operation.
m
:
Logical value
masking the operation.
Return value
A bool value which is true if and only if all elements of
x
are zero.
A masked version which is true if and only if all retained elements of
x
are zero.
Example
// revision 0
#include <eve/module/core.hpp>
#include <iostream>
int
main()
{
eve::wide
wu0{0u, 1u, 2u, 3u, 4u, 5u, 6u, 7u};
std::cout <<
"<- wu0 = "
<< wu0 <<
"\n"
;
std::cout <<
"-> none(wu0 <= maximum(wu0)/2) = "
<<
eve::none
(wu0 <=
eve::maximum
(wu0)/2) <<
"\n"
;
std::cout <<
"-> none[ignore_last(2)](wu0 <= maximum(wu0)/2) = "
<<
eve::none
[
eve::ignore_last
(2)](wu0 <=
eve::maximum
(wu0)/2) <<
"\n"
;
}
eve::maximum
constexpr callable_maximum_ maximum
Computes the maximal value in a simd vector.
Definition
maximum.hpp:55
eve::ignore_last
Conditional expression ignoring the k last lanes from a eve::simd_value.
Definition
conditional.hpp:332
eve::wide
Wrapper for SIMD registers.
Definition
wide.hpp:70
eve