Trait na::simd::SimdSigned[][src]

pub trait SimdSigned: SimdValue {
    pub fn simd_abs(&self) -> Self;
pub fn simd_abs_sub(&self, other: &Self) -> Self;
pub fn simd_signum(&self) -> Self;
pub fn is_simd_positive(&self) -> Self::SimdBool;
pub fn is_simd_negative(&self) -> Self::SimdBool; }

A lane-wise generalization of num::Signed for SIMD values.

Required methods

pub fn simd_abs(&self) -> Self[src]

The absolute value of each lane of self.

pub fn simd_abs_sub(&self, other: &Self) -> Self[src]

The absolute difference of each lane of self.

For each lane, this zero if the lane of self is less than or equal to the corresponding lane of other otherwise the difference between the lane of self and the lane of other is returned.

pub fn simd_signum(&self) -> Self[src]

The signum of each lane of Self.

pub fn is_simd_positive(&self) -> Self::SimdBool[src]

Tests which lane is positive.

pub fn is_simd_negative(&self) -> Self::SimdBool[src]

Tests which lane is negative.

Loading content...

Implementors

impl SimdSigned for AutoSimd<[f32; 2]>[src]

impl SimdSigned for AutoSimd<[f32; 4]>[src]

impl SimdSigned for AutoSimd<[f32; 8]>[src]

impl SimdSigned for AutoSimd<[f32; 16]>[src]

impl SimdSigned for AutoSimd<[f64; 2]>[src]

impl SimdSigned for AutoSimd<[f64; 4]>[src]

impl SimdSigned for AutoSimd<[f64; 8]>[src]

impl<T> SimdSigned for T where
    T: Signed + SimdValue<SimdBool = bool>, 
[src]

Loading content...