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 [0size()).
2) Returns a simd_mask where the i-th element equals lhs[i] != rhs[i] for all i in the range of [0size()).
3) Returns a simd_mask where the i-th element equals lhs[i] <  rhs[i] for all i in the range of [0size()).
4) Returns a simd_mask where the i-th element equals lhs[i] <= rhs[i] for all i in the range of [0size()).
5) Returns a simd_mask where the i-th element equals lhs[i] >  rhs[i] for all i in the range of [0size()).
6) Returns a simd_mask where the i-th element equals lhs[i] >= rhs[i] for all i in the range of [0size()).

Parameters

lhs - left operands
rhs - right operands

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)