#[repr(transparent)]pub struct WideF64x4(pub f64x4);
Expand description
A wrapper type of wide::f64x4
that implements all the relevant traits from num
and simba
.
This is needed to overcome the orphan rules.
Tuple Fields
0: f64x4
Trait Implementations
sourceimpl AddAssign<WideF64x4> for WideF64x4
impl AddAssign<WideF64x4> for WideF64x4
sourcefn add_assign(&mut self, rhs: Self)
fn add_assign(&mut self, rhs: Self)
Performs the +=
operation. Read more
sourceimpl DivAssign<WideF64x4> for WideF64x4
impl DivAssign<WideF64x4> for WideF64x4
sourcefn div_assign(&mut self, rhs: Self)
fn div_assign(&mut self, rhs: Self)
Performs the /=
operation. Read more
sourceimpl FromPrimitive for WideF64x4
impl FromPrimitive for WideF64x4
sourcefn from_i64(n: i64) -> Option<Self>
fn from_i64(n: i64) -> Option<Self>
Converts an i64
to return an optional value of this type. If the
value cannot be represented by this type, then None
is returned. Read more
sourcefn from_u64(n: u64) -> Option<Self>
fn from_u64(n: u64) -> Option<Self>
Converts an u64
to return an optional value of this type. If the
value cannot be represented by this type, then None
is returned. Read more
sourcefn from_isize(n: isize) -> Option<Self>
fn from_isize(n: isize) -> Option<Self>
Converts an isize
to return an optional value of this type. If the
value cannot be represented by this type, then None
is returned. Read more
sourcefn from_i8(n: i8) -> Option<Self>
fn from_i8(n: i8) -> Option<Self>
Converts an i8
to return an optional value of this type. If the
value cannot be represented by this type, then None
is returned. Read more
sourcefn from_i16(n: i16) -> Option<Self>
fn from_i16(n: i16) -> Option<Self>
Converts an i16
to return an optional value of this type. If the
value cannot be represented by this type, then None
is returned. Read more
sourcefn from_i32(n: i32) -> Option<Self>
fn from_i32(n: i32) -> Option<Self>
Converts an i32
to return an optional value of this type. If the
value cannot be represented by this type, then None
is returned. Read more
sourcefn from_usize(n: usize) -> Option<Self>
fn from_usize(n: usize) -> Option<Self>
Converts a usize
to return an optional value of this type. If the
value cannot be represented by this type, then None
is returned. Read more
sourcefn from_u8(n: u8) -> Option<Self>
fn from_u8(n: u8) -> Option<Self>
Converts an u8
to return an optional value of this type. If the
value cannot be represented by this type, then None
is returned. Read more
sourcefn from_u16(n: u16) -> Option<Self>
fn from_u16(n: u16) -> Option<Self>
Converts an u16
to return an optional value of this type. If the
value cannot be represented by this type, then None
is returned. Read more
sourcefn from_u32(n: u32) -> Option<Self>
fn from_u32(n: u32) -> Option<Self>
Converts an u32
to return an optional value of this type. If the
value cannot be represented by this type, then None
is returned. Read more
sourcefn from_f32(n: f32) -> Option<Self>
fn from_f32(n: f32) -> Option<Self>
Converts a f32
to return an optional value of this type. If the
value cannot be represented by this type, then None
is returned. Read more
sourcefn from_f64(n: f64) -> Option<Self>
fn from_f64(n: f64) -> Option<Self>
Converts a f64
to return an optional value of this type. If the
value cannot be represented by this type, then None
is returned. Read more
sourceimpl MulAssign<WideF64x4> for WideF64x4
impl MulAssign<WideF64x4> for WideF64x4
sourcefn mul_assign(&mut self, rhs: Self)
fn mul_assign(&mut self, rhs: Self)
Performs the *=
operation. Read more
sourceimpl Num for WideF64x4
impl Num for WideF64x4
type FromStrRadixErr = <f64 as Num>::FromStrRadixErr
sourcefn from_str_radix(str: &str, radix: u32) -> Result<Self, Self::FromStrRadixErr>
fn from_str_radix(str: &str, radix: u32) -> Result<Self, Self::FromStrRadixErr>
Convert from a string and radix (typically 2..=36
). Read more
sourceimpl RemAssign<WideF64x4> for WideF64x4
impl RemAssign<WideF64x4> for WideF64x4
sourcefn rem_assign(&mut self, rhs: Self)
fn rem_assign(&mut self, rhs: Self)
Performs the %=
operation. Read more
sourceimpl SimdComplexField for WideF64x4
impl SimdComplexField for WideF64x4
type SimdRealField = WideF64x4
type SimdRealField = WideF64x4
Type of the coefficients of a complex number.
sourcefn simd_horizontal_sum(self) -> Self::Element
fn simd_horizontal_sum(self) -> Self::Element
Computes the sum of all the lanes of self
.
sourcefn simd_horizontal_product(self) -> Self::Element
fn simd_horizontal_product(self) -> Self::Element
Computes the product of all the lanes of self
.
sourcefn from_simd_real(re: Self::SimdRealField) -> Self
fn from_simd_real(re: Self::SimdRealField) -> Self
Builds a pure-real complex number from the given value.
sourcefn simd_real(self) -> Self::SimdRealField
fn simd_real(self) -> Self::SimdRealField
The real part of this complex number.
sourcefn simd_imaginary(self) -> Self::SimdRealField
fn simd_imaginary(self) -> Self::SimdRealField
The imaginary part of this complex number.
sourcefn simd_norm1(self) -> Self::SimdRealField
fn simd_norm1(self) -> Self::SimdRealField
The sum of the absolute value of this complex number’s real and imaginary part.
sourcefn simd_modulus(self) -> Self::SimdRealField
fn simd_modulus(self) -> Self::SimdRealField
The modulus of this complex number.
sourcefn simd_modulus_squared(self) -> Self::SimdRealField
fn simd_modulus_squared(self) -> Self::SimdRealField
The squared modulus of this complex number.
sourcefn simd_argument(self) -> Self::SimdRealField
fn simd_argument(self) -> Self::SimdRealField
The argument of this complex number.
sourcefn simd_to_exp(self) -> (Self::SimdRealField, Self)
fn simd_to_exp(self) -> (Self::SimdRealField, Self)
The exponential form of this complex number: (modulus, e^{i arg})
fn simd_recip(self) -> Self
fn simd_conjugate(self) -> Self
sourcefn simd_scale(self, factor: Self::SimdRealField) -> Self
fn simd_scale(self, factor: Self::SimdRealField) -> Self
Multiplies this complex number by factor
.
sourcefn simd_unscale(self, factor: Self::SimdRealField) -> Self
fn simd_unscale(self, factor: Self::SimdRealField) -> Self
Divides this complex number by factor
.
fn simd_floor(self) -> Self
fn simd_ceil(self) -> Self
fn simd_round(self) -> Self
fn simd_trunc(self) -> Self
fn simd_fract(self) -> Self
sourcefn simd_abs(self) -> Self
fn simd_abs(self) -> Self
The absolute value of this complex number: self / self.signum()
. Read more
sourcefn simd_signum(self) -> Self
fn simd_signum(self) -> Self
The exponential part of this complex number: self / self.modulus()
fn simd_mul_add(self, a: Self, b: Self) -> Self
fn simd_powi(self, n: i32) -> Self
fn simd_powf(self, n: Self) -> Self
fn simd_powc(self, n: Self) -> Self
fn simd_sqrt(self) -> Self
fn simd_exp(self) -> Self
fn simd_exp2(self) -> Self
fn simd_exp_m1(self) -> Self
fn simd_ln_1p(self) -> Self
fn simd_ln(self) -> Self
fn simd_log(self, base: Self) -> Self
fn simd_log2(self) -> Self
fn simd_log10(self) -> Self
fn simd_cbrt(self) -> Self
sourcefn simd_hypot(self, other: Self) -> Self::SimdRealField
fn simd_hypot(self, other: Self) -> Self::SimdRealField
Computes (self.conjugate() * self + other.conjugate() * other).sqrt()
fn simd_sin(self) -> Self
fn simd_cos(self) -> Self
fn simd_tan(self) -> Self
fn simd_asin(self) -> Self
fn simd_acos(self) -> Self
fn simd_atan(self) -> Self
fn simd_sin_cos(self) -> (Self, Self)
fn simd_sinh(self) -> Self
fn simd_cosh(self) -> Self
fn simd_tanh(self) -> Self
fn simd_asinh(self) -> Self
fn simd_acosh(self) -> Self
fn simd_atanh(self) -> Self
sourcefn simd_to_polar(self) -> (Self::SimdRealField, Self::SimdRealField)
fn simd_to_polar(self) -> (Self::SimdRealField, Self::SimdRealField)
The polar form of this complex number: (modulus, arg)
fn simd_sinh_cosh(self) -> (Self, Self)
fn simd_sinhc(self) -> Self
fn simd_coshc(self) -> Self
sourceimpl SimdPartialOrd for WideF64x4
impl SimdPartialOrd for WideF64x4
sourcefn simd_clamp(self, min: Self, max: Self) -> Self
fn simd_clamp(self, min: Self, max: Self) -> Self
Clamps each lane of self
between the corresponding lane of min
and max
.
sourcefn simd_horizontal_min(self) -> Self::Element
fn simd_horizontal_min(self) -> Self::Element
The min value among all lanes of self
.
sourcefn simd_horizontal_max(self) -> Self::Element
fn simd_horizontal_max(self) -> Self::Element
The max value among all lanes of self
.
sourceimpl SimdRealField for WideF64x4
impl SimdRealField for WideF64x4
fn simd_atan2(self, other: Self) -> Self
sourcefn simd_copysign(self, sign: Self) -> Self
fn simd_copysign(self, sign: Self) -> Self
Copies the sign of sign
to self
. Read more
fn simd_default_epsilon() -> Self
fn simd_pi() -> Self
fn simd_two_pi() -> Self
fn simd_frac_pi_2() -> Self
fn simd_frac_pi_3() -> Self
fn simd_frac_pi_4() -> Self
fn simd_frac_pi_6() -> Self
fn simd_frac_pi_8() -> Self
fn simd_frac_1_pi() -> Self
fn simd_frac_2_pi() -> Self
fn simd_frac_2_sqrt_pi() -> Self
fn simd_e() -> Self
fn simd_log2_e() -> Self
fn simd_log10_e() -> Self
fn simd_ln_2() -> Self
fn simd_ln_10() -> Self
sourceimpl SimdSigned for WideF64x4
impl SimdSigned for WideF64x4
sourcefn simd_abs_sub(&self, other: &Self) -> Self
fn simd_abs_sub(&self, other: &Self) -> Self
The absolute difference of each lane of self
. Read more
sourcefn simd_signum(&self) -> Self
fn simd_signum(&self) -> Self
The signum of each lane of Self
.
sourcefn is_simd_positive(&self) -> Self::SimdBool
fn is_simd_positive(&self) -> Self::SimdBool
Tests which lane is positive.
sourcefn is_simd_negative(&self) -> Self::SimdBool
fn is_simd_negative(&self) -> Self::SimdBool
Tests which lane is negative.
sourceimpl SimdValue for WideF64x4
impl SimdValue for WideF64x4
type SimdBool = WideBoolF64x4
type SimdBool = WideBoolF64x4
Type of the result of comparing two SIMD values like self
.
sourceunsafe fn extract_unchecked(&self, i: usize) -> Self::Element
unsafe fn extract_unchecked(&self, i: usize) -> Self::Element
Extracts the i-th lane of self
without bound-checking.
sourcefn replace(&mut self, i: usize, val: Self::Element)
fn replace(&mut self, i: usize, val: Self::Element)
Replaces the i-th lane of self
by val
. Read more
sourceunsafe fn replace_unchecked(&mut self, i: usize, val: Self::Element)
unsafe fn replace_unchecked(&mut self, i: usize, val: Self::Element)
Replaces the i-th lane of self
by val
without bound-checking.
sourcefn select(self, cond: Self::SimdBool, other: Self) -> Self
fn select(self, cond: Self::SimdBool, other: Self) -> Self
Merges self
and other
depending on the lanes of cond
. Read more
sourceimpl SubAssign<WideF64x4> for WideF64x4
impl SubAssign<WideF64x4> for WideF64x4
sourcefn sub_assign(&mut self, rhs: Self)
fn sub_assign(&mut self, rhs: Self)
Performs the -=
operation. Read more
sourceimpl SubsetOf<WideF64x4> for u8
impl SubsetOf<WideF64x4> for u8
sourcefn to_superset(&self) -> WideF64x4
fn to_superset(&self) -> WideF64x4
The inclusion map: converts self
to the equivalent element of its superset.
sourcefn from_superset_unchecked(element: &WideF64x4) -> u8
fn from_superset_unchecked(element: &WideF64x4) -> u8
Use with care! Same as self.to_superset
but without any property checks. Always succeeds.
sourcefn is_in_subset(c: &WideF64x4) -> bool
fn is_in_subset(c: &WideF64x4) -> bool
Checks if element
is actually part of the subset Self
(and can be converted to it).
sourcefn from_superset(element: &T) -> Option<Self>
fn from_superset(element: &T) -> Option<Self>
The inverse inclusion map: attempts to construct self
from the equivalent element of its
superset. Read more
sourceimpl SubsetOf<WideF64x4> for u16
impl SubsetOf<WideF64x4> for u16
sourcefn to_superset(&self) -> WideF64x4
fn to_superset(&self) -> WideF64x4
The inclusion map: converts self
to the equivalent element of its superset.
sourcefn from_superset_unchecked(element: &WideF64x4) -> u16
fn from_superset_unchecked(element: &WideF64x4) -> u16
Use with care! Same as self.to_superset
but without any property checks. Always succeeds.
sourcefn is_in_subset(c: &WideF64x4) -> bool
fn is_in_subset(c: &WideF64x4) -> bool
Checks if element
is actually part of the subset Self
(and can be converted to it).
sourcefn from_superset(element: &T) -> Option<Self>
fn from_superset(element: &T) -> Option<Self>
The inverse inclusion map: attempts to construct self
from the equivalent element of its
superset. Read more
sourceimpl SubsetOf<WideF64x4> for f32
impl SubsetOf<WideF64x4> for f32
sourcefn to_superset(&self) -> WideF64x4
fn to_superset(&self) -> WideF64x4
The inclusion map: converts self
to the equivalent element of its superset.
sourcefn from_superset_unchecked(element: &WideF64x4) -> f32
fn from_superset_unchecked(element: &WideF64x4) -> f32
Use with care! Same as self.to_superset
but without any property checks. Always succeeds.
sourcefn is_in_subset(c: &WideF64x4) -> bool
fn is_in_subset(c: &WideF64x4) -> bool
Checks if element
is actually part of the subset Self
(and can be converted to it).
sourcefn from_superset(element: &T) -> Option<Self>
fn from_superset(element: &T) -> Option<Self>
The inverse inclusion map: attempts to construct self
from the equivalent element of its
superset. Read more
sourceimpl SubsetOf<WideF64x4> for f64
impl SubsetOf<WideF64x4> for f64
sourcefn to_superset(&self) -> WideF64x4
fn to_superset(&self) -> WideF64x4
The inclusion map: converts self
to the equivalent element of its superset.
sourcefn from_superset_unchecked(element: &WideF64x4) -> f64
fn from_superset_unchecked(element: &WideF64x4) -> f64
Use with care! Same as self.to_superset
but without any property checks. Always succeeds.
sourcefn is_in_subset(c: &WideF64x4) -> bool
fn is_in_subset(c: &WideF64x4) -> bool
Checks if element
is actually part of the subset Self
(and can be converted to it).
sourcefn from_superset(element: &T) -> Option<Self>
fn from_superset(element: &T) -> Option<Self>
The inverse inclusion map: attempts to construct self
from the equivalent element of its
superset. Read more
sourceimpl SubsetOf<WideF64x4> for WideF64x4
impl SubsetOf<WideF64x4> for WideF64x4
sourcefn to_superset(&self) -> Self
fn to_superset(&self) -> Self
The inclusion map: converts self
to the equivalent element of its superset.
sourcefn from_superset(element: &Self) -> Option<Self>
fn from_superset(element: &Self) -> Option<Self>
The inverse inclusion map: attempts to construct self
from the equivalent element of its
superset. Read more
sourcefn from_superset_unchecked(element: &Self) -> Self
fn from_superset_unchecked(element: &Self) -> Self
Use with care! Same as self.to_superset
but without any property checks. Always succeeds.
sourcefn is_in_subset(_: &Self) -> bool
fn is_in_subset(_: &Self) -> bool
Checks if element
is actually part of the subset Self
(and can be converted to it).
sourceimpl SubsetOf<WideF64x4> for u32
impl SubsetOf<WideF64x4> for u32
sourcefn to_superset(&self) -> WideF64x4
fn to_superset(&self) -> WideF64x4
The inclusion map: converts self
to the equivalent element of its superset.
sourcefn from_superset_unchecked(element: &WideF64x4) -> u32
fn from_superset_unchecked(element: &WideF64x4) -> u32
Use with care! Same as self.to_superset
but without any property checks. Always succeeds.
sourcefn is_in_subset(c: &WideF64x4) -> bool
fn is_in_subset(c: &WideF64x4) -> bool
Checks if element
is actually part of the subset Self
(and can be converted to it).
sourcefn from_superset(element: &T) -> Option<Self>
fn from_superset(element: &T) -> Option<Self>
The inverse inclusion map: attempts to construct self
from the equivalent element of its
superset. Read more
sourceimpl SubsetOf<WideF64x4> for u64
impl SubsetOf<WideF64x4> for u64
sourcefn to_superset(&self) -> WideF64x4
fn to_superset(&self) -> WideF64x4
The inclusion map: converts self
to the equivalent element of its superset.
sourcefn from_superset_unchecked(element: &WideF64x4) -> u64
fn from_superset_unchecked(element: &WideF64x4) -> u64
Use with care! Same as self.to_superset
but without any property checks. Always succeeds.
sourcefn is_in_subset(c: &WideF64x4) -> bool
fn is_in_subset(c: &WideF64x4) -> bool
Checks if element
is actually part of the subset Self
(and can be converted to it).
sourcefn from_superset(element: &T) -> Option<Self>
fn from_superset(element: &T) -> Option<Self>
The inverse inclusion map: attempts to construct self
from the equivalent element of its
superset. Read more
sourceimpl SubsetOf<WideF64x4> for usize
impl SubsetOf<WideF64x4> for usize
sourcefn to_superset(&self) -> WideF64x4
fn to_superset(&self) -> WideF64x4
The inclusion map: converts self
to the equivalent element of its superset.
sourcefn from_superset_unchecked(element: &WideF64x4) -> usize
fn from_superset_unchecked(element: &WideF64x4) -> usize
Use with care! Same as self.to_superset
but without any property checks. Always succeeds.
sourcefn is_in_subset(c: &WideF64x4) -> bool
fn is_in_subset(c: &WideF64x4) -> bool
Checks if element
is actually part of the subset Self
(and can be converted to it).
sourcefn from_superset(element: &T) -> Option<Self>
fn from_superset(element: &T) -> Option<Self>
The inverse inclusion map: attempts to construct self
from the equivalent element of its
superset. Read more
sourceimpl SubsetOf<WideF64x4> for i8
impl SubsetOf<WideF64x4> for i8
sourcefn to_superset(&self) -> WideF64x4
fn to_superset(&self) -> WideF64x4
The inclusion map: converts self
to the equivalent element of its superset.
sourcefn from_superset_unchecked(element: &WideF64x4) -> i8
fn from_superset_unchecked(element: &WideF64x4) -> i8
Use with care! Same as self.to_superset
but without any property checks. Always succeeds.
sourcefn is_in_subset(c: &WideF64x4) -> bool
fn is_in_subset(c: &WideF64x4) -> bool
Checks if element
is actually part of the subset Self
(and can be converted to it).
sourcefn from_superset(element: &T) -> Option<Self>
fn from_superset(element: &T) -> Option<Self>
The inverse inclusion map: attempts to construct self
from the equivalent element of its
superset. Read more
sourceimpl SubsetOf<WideF64x4> for i16
impl SubsetOf<WideF64x4> for i16
sourcefn to_superset(&self) -> WideF64x4
fn to_superset(&self) -> WideF64x4
The inclusion map: converts self
to the equivalent element of its superset.
sourcefn from_superset_unchecked(element: &WideF64x4) -> i16
fn from_superset_unchecked(element: &WideF64x4) -> i16
Use with care! Same as self.to_superset
but without any property checks. Always succeeds.
sourcefn is_in_subset(c: &WideF64x4) -> bool
fn is_in_subset(c: &WideF64x4) -> bool
Checks if element
is actually part of the subset Self
(and can be converted to it).
sourcefn from_superset(element: &T) -> Option<Self>
fn from_superset(element: &T) -> Option<Self>
The inverse inclusion map: attempts to construct self
from the equivalent element of its
superset. Read more
sourceimpl SubsetOf<WideF64x4> for i32
impl SubsetOf<WideF64x4> for i32
sourcefn to_superset(&self) -> WideF64x4
fn to_superset(&self) -> WideF64x4
The inclusion map: converts self
to the equivalent element of its superset.
sourcefn from_superset_unchecked(element: &WideF64x4) -> i32
fn from_superset_unchecked(element: &WideF64x4) -> i32
Use with care! Same as self.to_superset
but without any property checks. Always succeeds.
sourcefn is_in_subset(c: &WideF64x4) -> bool
fn is_in_subset(c: &WideF64x4) -> bool
Checks if element
is actually part of the subset Self
(and can be converted to it).
sourcefn from_superset(element: &T) -> Option<Self>
fn from_superset(element: &T) -> Option<Self>
The inverse inclusion map: attempts to construct self
from the equivalent element of its
superset. Read more
sourceimpl SubsetOf<WideF64x4> for i64
impl SubsetOf<WideF64x4> for i64
sourcefn to_superset(&self) -> WideF64x4
fn to_superset(&self) -> WideF64x4
The inclusion map: converts self
to the equivalent element of its superset.
sourcefn from_superset_unchecked(element: &WideF64x4) -> i64
fn from_superset_unchecked(element: &WideF64x4) -> i64
Use with care! Same as self.to_superset
but without any property checks. Always succeeds.
sourcefn is_in_subset(c: &WideF64x4) -> bool
fn is_in_subset(c: &WideF64x4) -> bool
Checks if element
is actually part of the subset Self
(and can be converted to it).
sourcefn from_superset(element: &T) -> Option<Self>
fn from_superset(element: &T) -> Option<Self>
The inverse inclusion map: attempts to construct self
from the equivalent element of its
superset. Read more
sourceimpl SubsetOf<WideF64x4> for isize
impl SubsetOf<WideF64x4> for isize
sourcefn to_superset(&self) -> WideF64x4
fn to_superset(&self) -> WideF64x4
The inclusion map: converts self
to the equivalent element of its superset.
sourcefn from_superset_unchecked(element: &WideF64x4) -> isize
fn from_superset_unchecked(element: &WideF64x4) -> isize
Use with care! Same as self.to_superset
but without any property checks. Always succeeds.
sourcefn is_in_subset(c: &WideF64x4) -> bool
fn is_in_subset(c: &WideF64x4) -> bool
Checks if element
is actually part of the subset Self
(and can be converted to it).
sourcefn from_superset(element: &T) -> Option<Self>
fn from_superset(element: &T) -> Option<Self>
The inverse inclusion map: attempts to construct self
from the equivalent element of its
superset. Read more
impl Copy for WideF64x4
impl Field for WideF64x4
impl PrimitiveSimdValue for WideF64x4
Auto Trait Implementations
impl RefUnwindSafe for WideF64x4
impl Send for WideF64x4
impl Sync for WideF64x4
impl Unpin for WideF64x4
impl UnwindSafe for WideF64x4
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more