Trait SimdOrd

pub trait SimdOrd: SimdPartialOrd

Parallel Ord.

Required Methods

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

Returns the element-wise maximum with other.

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

Returns the element-wise minimum with other.

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

Restrict each element to a certain interval.

For each element, returns max if self is greater than max, and min if self is less than min. Otherwise returns self.

Panics

Panics if min > max on any element.

Implementors