Struct wide::f64x4

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

Implementations§

source§

impl f64x4

source

pub const ONE: f64x4 = _

source

pub const ZERO: f64x4 = _

source

pub const HALF: f64x4 = _

source

pub const E: f64x4 = _

source

pub const FRAC_1_PI: f64x4 = _

source

pub const FRAC_2_PI: f64x4 = _

source

pub const FRAC_2_SQRT_PI: f64x4 = _

source

pub const FRAC_1_SQRT_2: f64x4 = _

source

pub const FRAC_PI_2: f64x4 = _

source

pub const FRAC_PI_3: f64x4 = _

source

pub const FRAC_PI_4: f64x4 = _

source

pub const FRAC_PI_6: f64x4 = _

source

pub const FRAC_PI_8: f64x4 = _

source

pub const LN_2: f64x4 = _

source

pub const LN_10: f64x4 = _

source

pub const LOG2_E: f64x4 = _

source

pub const LOG10_E: f64x4 = _

source

pub const LOG10_2: f64x4 = _

source

pub const LOG2_10: f64x4 = _

source

pub const PI: f64x4 = _

source

pub const SQRT_2: f64x4 = _

source

pub const TAU: f64x4 = _

source§

impl f64x4

source

pub fn new(array: [f64; 4]) -> 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. If either lane is NaN, the other lane gets chosen. Use fast_max for a faster implementation that doesn’t handle NaNs.

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 round_int(self) -> i64x4

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 acos(self) -> Self

source

pub fn asin(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 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 f64x4

source

pub fn reduce_add(self) -> f64

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_f64x4(self, y: Self) -> Self

source

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

source

pub fn to_array(self) -> [f64; 4]

source

pub fn as_array_ref(&self) -> &[f64; 4]

source

pub fn as_array_mut(&mut self) -> &mut [f64; 4]

source

pub fn from_i32x4(v: i32x4) -> Self

source§

impl f64x4

source

pub fn splat(elem: f64) -> f64x4

Trait Implementations§

source§

impl Add<&f64x4> for f64x4

source§

type Output = f64x4

The resulting type after applying the + operator.
source§

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

Performs the + operation. Read more
source§

impl Add<f64> for f64x4

source§

type Output = f64x4

The resulting type after applying the + operator.
source§

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

Performs the + operation. Read more
source§

impl Add<f64x4> for f64

source§

type Output = f64x4

The resulting type after applying the + operator.
source§

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

Performs the + operation. Read more
source§

impl Add for f64x4

source§

type Output = f64x4

The resulting type after applying the + operator.
source§

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

Performs the + operation. Read more
source§

impl AddAssign<&f64x4> for f64x4

source§

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

Performs the += operation. Read more
source§

impl AddAssign for f64x4

source§

fn add_assign(&mut self, rhs: Self)

Performs the += operation. Read more
source§

impl Binary for f64x4

source§

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

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

impl BitAnd<&f64x4> for f64x4

source§

type Output = f64x4

The resulting type after applying the & operator.
source§

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

Performs the & operation. Read more
source§

impl BitAnd for f64x4

source§

type Output = f64x4

The resulting type after applying the & operator.
source§

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

Performs the & operation. Read more
source§

impl BitAndAssign<&f64x4> for f64x4

source§

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

Performs the &= operation. Read more
source§

impl BitAndAssign for f64x4

source§

fn bitand_assign(&mut self, rhs: Self)

Performs the &= operation. Read more
source§

impl BitOr<&f64x4> for f64x4

source§

type Output = f64x4

The resulting type after applying the | operator.
source§

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

Performs the | operation. Read more
source§

impl BitOr for f64x4

source§

type Output = f64x4

The resulting type after applying the | operator.
source§

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

Performs the | operation. Read more
source§

impl BitOrAssign<&f64x4> for f64x4

source§

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

Performs the |= operation. Read more
source§

impl BitOrAssign for f64x4

source§

fn bitor_assign(&mut self, rhs: Self)

Performs the |= operation. Read more
source§

impl BitXor<&f64x4> for f64x4

source§

type Output = f64x4

The resulting type after applying the ^ operator.
source§

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

Performs the ^ operation. Read more
source§

impl BitXor for f64x4

source§

type Output = f64x4

The resulting type after applying the ^ operator.
source§

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

Performs the ^ operation. Read more
source§

impl BitXorAssign<&f64x4> for f64x4

source§

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

Performs the ^= operation. Read more
source§

impl BitXorAssign for f64x4

source§

fn bitxor_assign(&mut self, rhs: Self)

Performs the ^= operation. Read more
source§

impl Clone for f64x4

source§

fn clone(&self) -> f64x4

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<f64> for f64x4

source§

type Output = f64x4

source§

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

source§

impl CmpEq for f64x4

source§

type Output = f64x4

source§

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

source§

impl CmpGe<f64> for f64x4

source§

type Output = f64x4

source§

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

source§

impl CmpGe for f64x4

source§

type Output = f64x4

source§

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

source§

impl CmpGt<f64> for f64x4

source§

type Output = f64x4

source§

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

source§

impl CmpGt for f64x4

source§

type Output = f64x4

source§

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

source§

impl CmpLe<f64> for f64x4

source§

type Output = f64x4

source§

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

source§

impl CmpLe for f64x4

source§

type Output = f64x4

source§

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

source§

impl CmpLt<f64> for f64x4

source§

type Output = f64x4

source§

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

source§

impl CmpLt for f64x4

source§

type Output = f64x4

source§

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

source§

impl CmpNe<f64> for f64x4

source§

type Output = f64x4

source§

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

source§

impl CmpNe for f64x4

source§

type Output = f64x4

source§

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

source§

impl Debug for f64x4

source§

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

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

impl Default for f64x4

source§

fn default() -> f64x4

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

impl Display for f64x4

source§

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

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

impl Div<&f64x4> for f64x4

source§

type Output = f64x4

The resulting type after applying the / operator.
source§

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

Performs the / operation. Read more
source§

impl Div<f64> for f64x4

source§

type Output = f64x4

The resulting type after applying the / operator.
source§

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

Performs the / operation. Read more
source§

impl Div<f64x4> for f64

source§

type Output = f64x4

The resulting type after applying the / operator.
source§

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

Performs the / operation. Read more
source§

impl Div for f64x4

source§

type Output = f64x4

The resulting type after applying the / operator.
source§

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

Performs the / operation. Read more
source§

impl DivAssign<&f64x4> for f64x4

source§

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

Performs the /= operation. Read more
source§

impl DivAssign for f64x4

source§

fn div_assign(&mut self, rhs: Self)

Performs the /= operation. Read more
source§

impl From<&[f64]> for f64x4

source§

fn from(src: &[f64]) -> f64x4

Converts to this type from the input type.
source§

impl From<[f64; 4]> for f64x4

source§

fn from(arr: [f64; 4]) -> Self

Converts to this type from the input type.
source§

impl From<f64> for f64x4

source§

fn from(elem: f64) -> Self

Splats the single value given across all lanes.

source§

impl From<f64x4> for [f64; 4]

source§

fn from(simd: f64x4) -> Self

Converts to this type from the input type.
source§

impl From<i32x4> for f64x4

source§

fn from(v: i32x4) -> Self

Converts to this type from the input type.
source§

impl LowerExp for f64x4

source§

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

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

impl LowerHex for f64x4

source§

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

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

impl Mul<&f64x4> for f64x4

source§

type Output = f64x4

The resulting type after applying the * operator.
source§

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

Performs the * operation. Read more
source§

impl Mul<f64> for f64x4

source§

type Output = f64x4

The resulting type after applying the * operator.
source§

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

Performs the * operation. Read more
source§

impl Mul<f64x4> for f64

source§

type Output = f64x4

The resulting type after applying the * operator.
source§

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

Performs the * operation. Read more
source§

impl Mul for f64x4

source§

type Output = f64x4

The resulting type after applying the * operator.
source§

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

Performs the * operation. Read more
source§

impl MulAssign<&f64x4> for f64x4

source§

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

Performs the *= operation. Read more
source§

impl MulAssign for f64x4

source§

fn mul_assign(&mut self, rhs: Self)

Performs the *= operation. Read more
source§

impl Neg for &f64x4

source§

type Output = f64x4

The resulting type after applying the - operator.
source§

fn neg(self) -> Self::Output

Performs the unary - operation. Read more
source§

impl Neg for f64x4

source§

type Output = f64x4

The resulting type after applying the - operator.
source§

fn neg(self) -> Self::Output

Performs the unary - operation. Read more
source§

impl Not for f64x4

source§

type Output = f64x4

The resulting type after applying the ! operator.
source§

fn not(self) -> Self

Performs the unary ! operation. Read more
source§

impl Octal for f64x4

source§

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

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

impl PartialEq for f64x4

source§

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

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

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

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

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

source§

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

Takes an iterator and generates Self from the elements by multiplying the items.
source§

impl Sub<&f64x4> for f64x4

source§

type Output = f64x4

The resulting type after applying the - operator.
source§

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

Performs the - operation. Read more
source§

impl Sub<f64> for f64x4

source§

type Output = f64x4

The resulting type after applying the - operator.
source§

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

Performs the - operation. Read more
source§

impl Sub<f64x4> for f64

source§

type Output = f64x4

The resulting type after applying the - operator.
source§

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

Performs the - operation. Read more
source§

impl Sub for f64x4

source§

type Output = f64x4

The resulting type after applying the - operator.
source§

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

Performs the - operation. Read more
source§

impl SubAssign<&f64x4> for f64x4

source§

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

Performs the -= operation. Read more
source§

impl SubAssign for f64x4

source§

fn sub_assign(&mut self, rhs: Self)

Performs the -= operation. Read more
source§

impl<RHS> Sum<RHS> for f64x4
where f64x4: AddAssign<RHS>,

source§

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

Takes an iterator and generates Self from the elements by “summing up” the items.
source§

impl UpperExp for f64x4

source§

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

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

impl UpperHex for f64x4

source§

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

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

impl Zeroable for f64x4

source§

fn zeroed() -> Self

source§

impl Copy for f64x4

source§

impl Pod for f64x4

source§

impl StructuralPartialEq for f64x4

Auto Trait Implementations§

§

impl Freeze for f64x4

§

impl RefUnwindSafe for f64x4

§

impl Send for f64x4

§

impl Sync for f64x4

§

impl Unpin for f64x4

§

impl UnwindSafe for f64x4

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,

source§

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> CloneToUninit for T
where T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
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,

source§

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>,

source§

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>,

source§

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,