Struct wide::f32x8

source ·
#[repr(C, align(32))]
pub struct f32x8 { /* private fields */ }

Implementations§

source§

impl f32x8

source

pub const ONE: f32x8 = _

source

pub const HALF: f32x8 = _

source

pub const ZERO: f32x8 = _

source

pub const E: f32x8 = _

source

pub const FRAC_1_PI: f32x8 = _

source

pub const FRAC_2_PI: f32x8 = _

source

pub const FRAC_2_SQRT_PI: f32x8 = _

source

pub const FRAC_1_SQRT_2: f32x8 = _

source

pub const FRAC_PI_2: f32x8 = _

source

pub const FRAC_PI_3: f32x8 = _

source

pub const FRAC_PI_4: f32x8 = _

source

pub const FRAC_PI_6: f32x8 = _

source

pub const FRAC_PI_8: f32x8 = _

source

pub const LN_2: f32x8 = _

source

pub const LN_10: f32x8 = _

source

pub const LOG2_E: f32x8 = _

source

pub const LOG10_E: f32x8 = _

source

pub const LOG10_2: f32x8 = _

source

pub const LOG2_10: f32x8 = _

source

pub const PI: f32x8 = _

source

pub const SQRT_2: f32x8 = _

source

pub const TAU: f32x8 = _

source§

impl f32x8

source

pub fn new(array: [f32; 8]) -> Self

source

pub fn blend(self, t: Self, f: Self) -> Self

source

pub fn abs(self) -> Self

source

pub fn fast_max(self, rhs: Self) -> Self

Calculates the lanewise maximum of both vectors. This is a faster implementation than max, but it doesn’t specify any behavior if NaNs are involved.

source

pub fn max(self, rhs: Self) -> Self

Calculates the lanewise maximum of both vectors. This doesn’t match IEEE-754 and instead is defined as self < rhs ? rhs : self.

source

pub fn fast_min(self, rhs: Self) -> Self

Calculates the lanewise minimum of both vectors. This is a faster implementation than min, but it doesn’t specify any behavior if NaNs are involved.

source

pub fn min(self, rhs: Self) -> Self

Calculates the lanewise minimum of both vectors. If either lane is NaN, the other lane gets chosen. Use fast_min for a faster implementation that doesn’t handle NaNs.

source

pub fn is_nan(self) -> Self

source

pub fn is_finite(self) -> Self

source

pub fn is_inf(self) -> Self

source

pub fn round(self) -> Self

source

pub fn fast_round_int(self) -> i32x8

Rounds each lane into an integer. This is a faster implementation than round_int, but it doesn’t handle out of range values or NaNs. For those values you get implementation defined behavior.

source

pub fn round_int(self) -> i32x8

Rounds each lane into an integer. This saturates out of range values and turns NaNs into 0. Use fast_round_int for a faster implementation that doesn’t handle out of range values or NaNs.

source

pub fn fast_trunc_int(self) -> i32x8

Truncates each lane into an integer. This is a faster implementation than trunc_int, but it doesn’t handle out of range values or NaNs. For those values you get implementation defined behavior.

source

pub fn trunc_int(self) -> i32x8

Truncates each lane into an integer. This saturates out of range values and turns NaNs into 0. Use fast_trunc_int for a faster implementation that doesn’t handle out of range values or NaNs.

source

pub fn mul_add(self, m: Self, a: Self) -> Self

source

pub fn mul_sub(self, m: Self, a: Self) -> Self

source

pub fn mul_neg_add(self, m: Self, a: Self) -> Self

source

pub fn mul_neg_sub(self, m: Self, a: Self) -> Self

source

pub fn flip_signs(self, signs: Self) -> Self

source

pub fn copysign(self, sign: Self) -> Self

source

pub fn asin_acos(self) -> (Self, Self)

source

pub fn asin(self) -> Self

source

pub fn acos(self) -> Self

source

pub fn atan(self) -> Self

source

pub fn atan2(self, x: Self) -> Self

source

pub fn sin_cos(self) -> (Self, Self)

source

pub fn sin(self) -> Self

source

pub fn cos(self) -> Self

source

pub fn tan(self) -> Self

source

pub fn to_degrees(self) -> Self

source

pub fn to_radians(self) -> Self

source

pub fn recip(self) -> Self

source

pub fn recip_sqrt(self) -> Self

source

pub fn sqrt(self) -> Self

source

pub fn move_mask(self) -> i32

source

pub fn any(self) -> bool

source

pub fn all(self) -> bool

source

pub fn none(self) -> bool

source

pub fn exp(self) -> Self

Calculate the exponent of a packed f32x8

source

pub fn sign_bit(self) -> Self

source

pub fn reduce_add(self) -> f32

horizontal add of all the elements of the vector

source

pub fn ln(self) -> Self

Natural log (ln(x))

source

pub fn log2(self) -> Self

source

pub fn log10(self) -> Self

source

pub fn pow_f32x8(self, y: Self) -> Self

source

pub fn powf(self, y: f32) -> Self

source

pub fn transpose(data: [f32x8; 8]) -> [f32x8; 8]

Transpose matrix of 8x8 f32 matrix. Currently only accelerated on AVX.

source

pub fn to_array(self) -> [f32; 8]

source

pub fn as_array_ref(&self) -> &[f32; 8]

source

pub fn as_array_mut(&mut self) -> &mut [f32; 8]

source

pub fn from_i32x8(v: i32x8) -> Self

source§

impl f32x8

source

pub fn splat(elem: f32) -> f32x8

Trait Implementations§

source§

impl Add<&f32x8> for f32x8

§

type Output = f32x8

The resulting type after applying the + operator.
source§

fn add(self, rhs: &Self) -> Self::Output

Performs the + operation. Read more
source§

impl Add<f32> for f32x8

§

type Output = f32x8

The resulting type after applying the + operator.
source§

fn add(self, rhs: f32) -> Self::Output

Performs the + operation. Read more
source§

impl Add<f32x8> for f32

§

type Output = f32x8

The resulting type after applying the + operator.
source§

fn add(self, rhs: f32x8) -> Self::Output

Performs the + operation. Read more
source§

impl Add for f32x8

§

type Output = f32x8

The resulting type after applying the + operator.
source§

fn add(self, rhs: Self) -> Self::Output

Performs the + operation. Read more
source§

impl AddAssign<&f32x8> for f32x8

source§

fn add_assign(&mut self, rhs: &Self)

Performs the += operation. Read more
source§

impl AddAssign for f32x8

source§

fn add_assign(&mut self, rhs: Self)

Performs the += operation. Read more
source§

impl Binary for f32x8

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter.
source§

impl BitAnd<&f32x8> for f32x8

§

type Output = f32x8

The resulting type after applying the & operator.
source§

fn bitand(self, rhs: &Self) -> Self::Output

Performs the & operation. Read more
source§

impl BitAnd for f32x8

§

type Output = f32x8

The resulting type after applying the & operator.
source§

fn bitand(self, rhs: Self) -> Self::Output

Performs the & operation. Read more
source§

impl BitAndAssign<&f32x8> for f32x8

source§

fn bitand_assign(&mut self, rhs: &Self)

Performs the &= operation. Read more
source§

impl BitAndAssign for f32x8

source§

fn bitand_assign(&mut self, rhs: Self)

Performs the &= operation. Read more
source§

impl BitOr<&f32x8> for f32x8

§

type Output = f32x8

The resulting type after applying the | operator.
source§

fn bitor(self, rhs: &Self) -> Self::Output

Performs the | operation. Read more
source§

impl BitOr for f32x8

§

type Output = f32x8

The resulting type after applying the | operator.
source§

fn bitor(self, rhs: Self) -> Self::Output

Performs the | operation. Read more
source§

impl BitOrAssign<&f32x8> for f32x8

source§

fn bitor_assign(&mut self, rhs: &Self)

Performs the |= operation. Read more
source§

impl BitOrAssign for f32x8

source§

fn bitor_assign(&mut self, rhs: Self)

Performs the |= operation. Read more
source§

impl BitXor<&f32x8> for f32x8

§

type Output = f32x8

The resulting type after applying the ^ operator.
source§

fn bitxor(self, rhs: &Self) -> Self::Output

Performs the ^ operation. Read more
source§

impl BitXor for f32x8

§

type Output = f32x8

The resulting type after applying the ^ operator.
source§

fn bitxor(self, rhs: Self) -> Self::Output

Performs the ^ operation. Read more
source§

impl BitXorAssign<&f32x8> for f32x8

source§

fn bitxor_assign(&mut self, rhs: &Self)

Performs the ^= operation. Read more
source§

impl BitXorAssign for f32x8

source§

fn bitxor_assign(&mut self, rhs: Self)

Performs the ^= operation. Read more
source§

impl Clone for f32x8

source§

fn clone(&self) -> f32x8

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl CmpEq<f32> for f32x8

§

type Output = f32x8

source§

fn cmp_eq(self, rhs: f32) -> Self::Output

source§

impl CmpEq for f32x8

§

type Output = f32x8

source§

fn cmp_eq(self, rhs: Self) -> Self::Output

source§

impl CmpGe<f32> for f32x8

§

type Output = f32x8

source§

fn cmp_ge(self, rhs: f32) -> Self::Output

source§

impl CmpGe for f32x8

§

type Output = f32x8

source§

fn cmp_ge(self, rhs: Self) -> Self::Output

source§

impl CmpGt<f32> for f32x8

§

type Output = f32x8

source§

fn cmp_gt(self, rhs: f32) -> Self::Output

source§

impl CmpGt for f32x8

§

type Output = f32x8

source§

fn cmp_gt(self, rhs: Self) -> Self::Output

source§

impl CmpLe<f32> for f32x8

§

type Output = f32x8

source§

fn cmp_le(self, rhs: f32) -> Self::Output

source§

impl CmpLe for f32x8

§

type Output = f32x8

source§

fn cmp_le(self, rhs: Self) -> Self::Output

source§

impl CmpLt<f32> for f32x8

§

type Output = f32x8

source§

fn cmp_lt(self, rhs: f32) -> Self::Output

source§

impl CmpLt for f32x8

§

type Output = f32x8

source§

fn cmp_lt(self, rhs: Self) -> Self::Output

source§

impl CmpNe<f32> for f32x8

§

type Output = f32x8

source§

fn cmp_ne(self, rhs: f32) -> Self::Output

source§

impl CmpNe for f32x8

§

type Output = f32x8

source§

fn cmp_ne(self, rhs: Self) -> Self::Output

source§

impl Debug for f32x8

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Default for f32x8

source§

fn default() -> f32x8

Returns the “default value” for a type. Read more
source§

impl Display for f32x8

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Div<&f32x8> for f32x8

§

type Output = f32x8

The resulting type after applying the / operator.
source§

fn div(self, rhs: &Self) -> Self::Output

Performs the / operation. Read more
source§

impl Div<f32> for f32x8

§

type Output = f32x8

The resulting type after applying the / operator.
source§

fn div(self, rhs: f32) -> Self::Output

Performs the / operation. Read more
source§

impl Div<f32x8> for f32

§

type Output = f32x8

The resulting type after applying the / operator.
source§

fn div(self, rhs: f32x8) -> Self::Output

Performs the / operation. Read more
source§

impl Div for f32x8

§

type Output = f32x8

The resulting type after applying the / operator.
source§

fn div(self, rhs: Self) -> Self::Output

Performs the / operation. Read more
source§

impl DivAssign<&f32x8> for f32x8

source§

fn div_assign(&mut self, rhs: &Self)

Performs the /= operation. Read more
source§

impl DivAssign for f32x8

source§

fn div_assign(&mut self, rhs: Self)

Performs the /= operation. Read more
source§

impl From<&[f32]> for f32x8

source§

fn from(src: &[f32]) -> f32x8

Converts to this type from the input type.
source§

impl From<[f32; 8]> for f32x8

source§

fn from(arr: [f32; 8]) -> Self

Converts to this type from the input type.
source§

impl From<f32> for f32x8

source§

fn from(elem: f32) -> Self

Splats the single value given across all lanes.

source§

impl From<f32x8> for [f32; 8]

source§

fn from(simd: f32x8) -> Self

Converts to this type from the input type.
source§

impl LowerExp for f32x8

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter.
source§

impl LowerHex for f32x8

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter.
source§

impl Mul<&f32x8> for f32x8

§

type Output = f32x8

The resulting type after applying the * operator.
source§

fn mul(self, rhs: &Self) -> Self::Output

Performs the * operation. Read more
source§

impl Mul<f32> for f32x8

§

type Output = f32x8

The resulting type after applying the * operator.
source§

fn mul(self, rhs: f32) -> Self::Output

Performs the * operation. Read more
source§

impl Mul<f32x8> for f32

§

type Output = f32x8

The resulting type after applying the * operator.
source§

fn mul(self, rhs: f32x8) -> Self::Output

Performs the * operation. Read more
source§

impl Mul for f32x8

§

type Output = f32x8

The resulting type after applying the * operator.
source§

fn mul(self, rhs: Self) -> Self::Output

Performs the * operation. Read more
source§

impl MulAssign<&f32x8> for f32x8

source§

fn mul_assign(&mut self, rhs: &Self)

Performs the *= operation. Read more
source§

impl MulAssign for f32x8

source§

fn mul_assign(&mut self, rhs: Self)

Performs the *= operation. Read more
source§

impl Neg for &f32x8

§

type Output = f32x8

The resulting type after applying the - operator.
source§

fn neg(self) -> Self::Output

Performs the unary - operation. Read more
source§

impl Neg for f32x8

§

type Output = f32x8

The resulting type after applying the - operator.
source§

fn neg(self) -> Self::Output

Performs the unary - operation. Read more
source§

impl Not for f32x8

§

type Output = f32x8

The resulting type after applying the ! operator.
source§

fn not(self) -> Self

Performs the unary ! operation. Read more
source§

impl Octal for f32x8

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter.
source§

impl PartialEq for f32x8

source§

fn eq(&self, other: &f32x8) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl<RHS> Product<RHS> for f32x8
where f32x8: MulAssign<RHS>,

source§

fn product<I: Iterator<Item = RHS>>(iter: I) -> Self

Method which takes an iterator and generates Self from the elements by multiplying the items.
source§

impl Sub<&f32x8> for f32x8

§

type Output = f32x8

The resulting type after applying the - operator.
source§

fn sub(self, rhs: &Self) -> Self::Output

Performs the - operation. Read more
source§

impl Sub<f32> for f32x8

§

type Output = f32x8

The resulting type after applying the - operator.
source§

fn sub(self, rhs: f32) -> Self::Output

Performs the - operation. Read more
source§

impl Sub<f32x8> for f32

§

type Output = f32x8

The resulting type after applying the - operator.
source§

fn sub(self, rhs: f32x8) -> Self::Output

Performs the - operation. Read more
source§

impl Sub for f32x8

§

type Output = f32x8

The resulting type after applying the - operator.
source§

fn sub(self, rhs: Self) -> Self::Output

Performs the - operation. Read more
source§

impl SubAssign<&f32x8> for f32x8

source§

fn sub_assign(&mut self, rhs: &Self)

Performs the -= operation. Read more
source§

impl SubAssign for f32x8

source§

fn sub_assign(&mut self, rhs: Self)

Performs the -= operation. Read more
source§

impl UpperExp for f32x8

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter.
source§

impl UpperHex for f32x8

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter.
source§

impl Zeroable for f32x8

source§

fn zeroed() -> Self

source§

impl Copy for f32x8

source§

impl Pod for f32x8

source§

impl StructuralPartialEq for f32x8

Auto Trait Implementations§

§

impl Freeze for f32x8

§

impl RefUnwindSafe for f32x8

§

impl Send for f32x8

§

impl Sync for f32x8

§

impl Unpin for f32x8

§

impl UnwindSafe for f32x8

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> CheckedBitPattern for T
where T: AnyBitPattern,

§

type Bits = T

Self must have the same layout as the specified Bits except for the possible invalid bit patterns being checked during is_valid_bit_pattern.
source§

fn is_valid_bit_pattern(_bits: &T) -> bool

If this function returns true, then it must be valid to reinterpret bits as &Self.
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T> ToString for T
where T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<T> AnyBitPattern for T
where T: Pod,

source§

impl<T> NoUninit for T
where T: Pod,