simba::simd

Trait 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§

Source

fn simd_gt(self, other: Self) -> Self::SimdBool

Lanewise greater than > comparison.

Source

fn simd_lt(self, other: Self) -> Self::SimdBool

Lanewise less than < comparison.

Source

fn simd_ge(self, other: Self) -> Self::SimdBool

Lanewise greater or equal >= comparison.

Source

fn simd_le(self, other: Self) -> Self::SimdBool

Lanewise less or equal <= comparison.

Source

fn simd_eq(self, other: Self) -> Self::SimdBool

Lanewise equal == comparison.

Source

fn simd_ne(self, other: Self) -> Self::SimdBool

Lanewise not equal != comparison.

Source

fn simd_max(self, other: Self) -> Self

Lanewise max value.

Source

fn simd_min(self, other: Self) -> Self

Lanewise min value.

Source

fn simd_clamp(self, min: Self, max: Self) -> Self

Clamps each lane of self between the corresponding lane of min and max.

Source

fn simd_horizontal_min(self) -> Self::Element

The min value among all lanes of self.

Source

fn simd_horizontal_max(self) -> Self::Element

The max value among all lanes of self.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl SimdPartialOrd for AutoSimd<[f32; 2]>

Source§

impl SimdPartialOrd for AutoSimd<[f32; 4]>

Source§

impl SimdPartialOrd for AutoSimd<[f32; 8]>

Source§

impl SimdPartialOrd for AutoSimd<[f32; 16]>

Source§

impl SimdPartialOrd for AutoSimd<[f64; 2]>

Source§

impl SimdPartialOrd for AutoSimd<[f64; 4]>

Source§

impl SimdPartialOrd for AutoSimd<[f64; 8]>

Source§

impl SimdPartialOrd for AutoSimd<[i8; 2]>

Source§

impl SimdPartialOrd for AutoSimd<[i8; 4]>

Source§

impl SimdPartialOrd for AutoSimd<[i8; 8]>

Source§

impl SimdPartialOrd for AutoSimd<[i8; 16]>

Source§

impl SimdPartialOrd for AutoSimd<[i8; 32]>

Source§

impl SimdPartialOrd for AutoSimd<[i16; 2]>

Source§

impl SimdPartialOrd for AutoSimd<[i16; 4]>

Source§

impl SimdPartialOrd for AutoSimd<[i16; 8]>

Source§

impl SimdPartialOrd for AutoSimd<[i16; 16]>

Source§

impl SimdPartialOrd for AutoSimd<[i16; 32]>

Source§

impl SimdPartialOrd for AutoSimd<[i32; 2]>

Source§

impl SimdPartialOrd for AutoSimd<[i32; 4]>

Source§

impl SimdPartialOrd for AutoSimd<[i32; 8]>

Source§

impl SimdPartialOrd for AutoSimd<[i32; 16]>

Source§

impl SimdPartialOrd for AutoSimd<[i64; 2]>

Source§

impl SimdPartialOrd for AutoSimd<[i64; 4]>

Source§

impl SimdPartialOrd for AutoSimd<[i64; 8]>

Source§

impl SimdPartialOrd for AutoSimd<[i128; 1]>

Source§

impl SimdPartialOrd for AutoSimd<[i128; 2]>

Source§

impl SimdPartialOrd for AutoSimd<[i128; 4]>

Source§

impl SimdPartialOrd for AutoSimd<[isize; 2]>

Source§

impl SimdPartialOrd for AutoSimd<[isize; 4]>

Source§

impl SimdPartialOrd for AutoSimd<[isize; 8]>

Source§

impl SimdPartialOrd for AutoSimd<[u8; 2]>

Source§

impl SimdPartialOrd for AutoSimd<[u8; 4]>

Source§

impl SimdPartialOrd for AutoSimd<[u8; 8]>

Source§

impl SimdPartialOrd for AutoSimd<[u8; 16]>

Source§

impl SimdPartialOrd for AutoSimd<[u8; 32]>

Source§

impl SimdPartialOrd for AutoSimd<[u16; 2]>

Source§

impl SimdPartialOrd for AutoSimd<[u16; 4]>

Source§

impl SimdPartialOrd for AutoSimd<[u16; 8]>

Source§

impl SimdPartialOrd for AutoSimd<[u16; 16]>

Source§

impl SimdPartialOrd for AutoSimd<[u16; 32]>

Source§

impl SimdPartialOrd for AutoSimd<[u32; 2]>

Source§

impl SimdPartialOrd for AutoSimd<[u32; 4]>

Source§

impl SimdPartialOrd for AutoSimd<[u32; 8]>

Source§

impl SimdPartialOrd for AutoSimd<[u32; 16]>

Source§

impl SimdPartialOrd for AutoSimd<[u64; 2]>

Source§

impl SimdPartialOrd for AutoSimd<[u64; 4]>

Source§

impl SimdPartialOrd for AutoSimd<[u64; 8]>

Source§

impl SimdPartialOrd for AutoSimd<[u128; 1]>

Source§

impl SimdPartialOrd for AutoSimd<[u128; 2]>

Source§

impl SimdPartialOrd for AutoSimd<[u128; 4]>

Source§

impl SimdPartialOrd for AutoSimd<[usize; 2]>

Source§

impl SimdPartialOrd for AutoSimd<[usize; 4]>

Source§

impl SimdPartialOrd for AutoSimd<[usize; 8]>

Source§

impl<T: PartialOrd + SimdValue<Element = T, SimdBool = bool>> SimdPartialOrd for T