Trait simba::simd::SimdPartialOrd
source · pub trait SimdPartialOrd: SimdValue {
// Required methods
fn simd_gt(self, other: Self) -> Self::SimdBool;
fn simd_lt(self, other: Self) -> Self::SimdBool;
fn simd_ge(self, other: Self) -> Self::SimdBool;
fn simd_le(self, other: Self) -> Self::SimdBool;
fn simd_eq(self, other: Self) -> Self::SimdBool;
fn simd_ne(self, other: Self) -> Self::SimdBool;
fn simd_max(self, other: Self) -> Self;
fn simd_min(self, other: Self) -> Self;
fn simd_clamp(self, min: Self, max: Self) -> Self;
fn simd_horizontal_min(self) -> Self::Element;
fn simd_horizontal_max(self) -> Self::Element;
}
Expand description
Lane-wise generalization of the standard PartialOrd
for SIMD values.
Required Methods§
sourcefn simd_clamp(self, min: Self, max: Self) -> Self
fn simd_clamp(self, min: Self, max: Self) -> Self
Clamps each lane of self
between the corresponding lane of min
and max
.
sourcefn simd_horizontal_min(self) -> Self::Element
fn simd_horizontal_min(self) -> Self::Element
The min value among all lanes of self
.
sourcefn simd_horizontal_max(self) -> Self::Element
fn simd_horizontal_max(self) -> Self::Element
The max value among all lanes of self
.
Object Safety§
This trait is not object safe.