std::experimental::simd<T,Abi>::operator==,!=,<,<=,>,>=
< cpp | experimental | simd | simd
|
friend simd_mask operator==( const simd& lhs, const simd& rhs ) noexcept;
|
(1) | (parallelism TS v2) |
|
friend simd_mask operator!=( const simd& lhs, const simd& rhs ) noexcept;
|
(2) | (parallelism TS v2) |
|
friend simd_mask operator<( const simd& lhs, const simd& rhs ) noexcept;
|
(3) | (parallelism TS v2) |
|
friend simd_mask operator<=( const simd& lhs, const simd& rhs ) noexcept;
|
(4) | (parallelism TS v2) |
|
friend simd_mask operator>( const simd& lhs, const simd& rhs ) noexcept;
|
(5) | (parallelism TS v2) |
|
friend simd_mask operator>=( const simd& lhs, const simd& rhs ) noexcept;
|
(6) | (parallelism TS v2) |
Applies the given comparison element-wise to each corresponding element of the operands.
1) Returns a simd_mask where the i-th element equals lhs[i] == rhs[i] for all i in the range of
[0, size()).2) Returns a simd_mask where the i-th element equals lhs[i] != rhs[i] for all i in the range of
[0, size()).3) Returns a simd_mask where the i-th element equals lhs[i] < rhs[i] for all i in the range of
[0, size()).4) Returns a simd_mask where the i-th element equals lhs[i] <= rhs[i] for all i in the range of
[0, size()).5) Returns a simd_mask where the i-th element equals lhs[i] > rhs[i] for all i in the range of
[0, size()).6) Returns a simd_mask where the i-th element equals lhs[i] >= rhs[i] for all i in the range of
[0, size()).Parameters
| lhs | - | left operands |
| rhs | - | right operands |
Example
| This section is incomplete Reason: no example |
See also
|
(parallelism TS v2)
|
reductions of simd_mask to bool (function template) |
|
(parallelism TS v2)
|
reduction of simd_mask to the number of true values (function template) |
|
(parallelism TS v2)
|
reductions of simd_mask to the index of the first or last true value (function template) |
|
(parallelism TS v2)
|
data-parallel type with the element type bool (class template) |