Difference between revisions of "cpp/experimental/simd/simd/operator cmp"
From cppreference.com
< cpp | experimental | simd | simd
m (→See also) |
m (→See also) |
||
Line 45: | Line 45: | ||
{{dsc inc|cpp/experimental/simd/dsc popcount}} | {{dsc inc|cpp/experimental/simd/dsc popcount}} | ||
{{dsc inc|cpp/experimental/simd/dsc find_first_set}} | {{dsc inc|cpp/experimental/simd/dsc find_first_set}} | ||
+ | {{dsc inc|cpp/experimental/simd/dsc simd_mask}} | ||
{{dsc end}} | {{dsc end}} |
Revision as of 12:11, 20 March 2023
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) |