E.V.E
v2023.02.15
Loading...
Searching...
No Matches
◆
none
eve::none = functor<none_t>
inline
constexpr
Header file
#include <eve/module/core.hpp>
Callable Signatures
namespace
eve
{
// Regular overloads
template
<relaxed_logical_value T>
bool
none
(
T
v)
requires
!Options::contains(splat)
noexcept
;
// 1
template
<logical_simd_value T>
bool
none
(
top_bits<T>
t
)
requires
!Options::contains(splat)
noexcept
;
// 1
// Splat overload
template
<logical_simd_value T>
bool
none
(
T
t
)
requires
Options::contains(splat)
noexcept
;
// 2
// Lanes masking
bool
none
[
conditional_expr
auto
c
](
/* any of the above overloads */
)
noexcept
;
// 3
bool
none
[
logical_value
auto
m
](
/* any of the above overloads */
)
noexcept
;
// 3
}
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:134
eve::none
constexpr auto none
Computes a bool value which is true if and only if all elements of x evaluate to false.
Definition
none.hpp:95
eve::translate_t
typename decltype(detail::as_translated_type(as< T >{}))::type translate_t
Returns the final translated type of T.
Definition
translation.hpp:107
eve
EVE Main Namespace.
Definition
abi.hpp:19
Parameters
v
:
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
evaluates to false.
The result of the reduction is splatted across every lane of the output.
Same as the above but the masked lanes are ignored during the operation.
Example
// revision 0
#include <eve/module/core.hpp>
#include <iostream>
int
main
()
{
eve::wide
wu0
{0
u
, 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 auto maximum
Computes the maximal value in a simd vector or valmin if the input is fully masked.
Definition
maximum.hpp:82
eve::ignore_last
Conditional expression ignoring the k last lanes from a eve::simd_value.
Definition
conditional.hpp:320
eve::wide
Wrapper for SIMD registers.
Definition
wide.hpp:94
eve