Trait nalgebra::SimdComplexField [−][src]
Lane-wise generalisation of ComplexField
for SIMD complex fields.
Each lane of an SIMD complex field should contain one complex field.
Associated Types
type SimdRealField: SimdRealField
[src]
Type of the coefficients of a complex number.
Required methods
pub fn from_simd_real(re: Self::SimdRealField) -> Self
[src]
Builds a pure-real complex number from the given value.
pub fn simd_real(self) -> Self::SimdRealField
[src]
The real part of this complex number.
pub fn simd_imaginary(self) -> Self::SimdRealField
[src]
The imaginary part of this complex number.
pub fn simd_modulus(self) -> Self::SimdRealField
[src]
The modulus of this complex number.
pub fn simd_modulus_squared(self) -> Self::SimdRealField
[src]
The squared modulus of this complex number.
pub fn simd_argument(self) -> Self::SimdRealField
[src]
The argument of this complex number.
pub fn simd_norm1(self) -> Self::SimdRealField
[src]
The sum of the absolute value of this complex number’s real and imaginary part.
pub fn simd_scale(self, factor: Self::SimdRealField) -> Self
[src]
Multiplies this complex number by factor
.
pub fn simd_unscale(self, factor: Self::SimdRealField) -> Self
[src]
Divides this complex number by factor
.
pub fn simd_floor(self) -> Self
[src]
pub fn simd_ceil(self) -> Self
[src]
pub fn simd_round(self) -> Self
[src]
pub fn simd_trunc(self) -> Self
[src]
pub fn simd_fract(self) -> Self
[src]
pub fn simd_mul_add(self, a: Self, b: Self) -> Self
[src]
pub fn simd_abs(self) -> Self::SimdRealField
[src]
The absolute value of this complex number: self / self.signum()
.
This is equivalent to self.modulus()
.
pub fn simd_hypot(self, other: Self) -> Self::SimdRealField
[src]
Computes (self.conjugate() * self + other.conjugate() * other).sqrt()
pub fn simd_recip(self) -> Self
[src]
pub fn simd_conjugate(self) -> Self
[src]
pub fn simd_sin(self) -> Self
[src]
pub fn simd_cos(self) -> Self
[src]
pub fn simd_sin_cos(self) -> (Self, Self)
[src]
pub fn simd_tan(self) -> Self
[src]
pub fn simd_asin(self) -> Self
[src]
pub fn simd_acos(self) -> Self
[src]
pub fn simd_atan(self) -> Self
[src]
pub fn simd_sinh(self) -> Self
[src]
pub fn simd_cosh(self) -> Self
[src]
pub fn simd_tanh(self) -> Self
[src]
pub fn simd_asinh(self) -> Self
[src]
pub fn simd_acosh(self) -> Self
[src]
pub fn simd_atanh(self) -> Self
[src]
pub fn simd_log(self, base: Self::SimdRealField) -> Self
[src]
pub fn simd_log2(self) -> Self
[src]
pub fn simd_log10(self) -> Self
[src]
pub fn simd_ln(self) -> Self
[src]
pub fn simd_ln_1p(self) -> Self
[src]
pub fn simd_sqrt(self) -> Self
[src]
pub fn simd_exp(self) -> Self
[src]
pub fn simd_exp2(self) -> Self
[src]
pub fn simd_exp_m1(self) -> Self
[src]
pub fn simd_powi(self, n: i32) -> Self
[src]
pub fn simd_powf(self, n: Self::SimdRealField) -> Self
[src]
pub fn simd_powc(self, n: Self) -> Self
[src]
pub fn simd_cbrt(self) -> Self
[src]
Provided methods
pub fn simd_to_polar(self) -> (Self::SimdRealField, Self::SimdRealField)
[src]
The polar form of this complex number: (modulus, arg)
pub fn simd_to_exp(self) -> (Self::SimdRealField, Self)
[src]
The exponential form of this complex number: (modulus, e^{i arg})
pub fn simd_signum(self) -> Self
[src]
The exponential part of this complex number: self / self.modulus()
pub fn simd_sinh_cosh(self) -> (Self, Self)
[src]
pub fn simd_sinc(self) -> Self
[src]
Cardinal sine
pub fn simd_sinhc(self) -> Self
[src]
pub fn simd_cosc(self) -> Self
[src]
Cardinal cos
pub fn simd_coshc(self) -> Self
[src]
Implementors
impl<T> SimdComplexField for T where
T: ComplexField,
[src]
T: ComplexField,
type SimdRealField = <T as ComplexField>::RealField
pub fn from_simd_real(re: <T as SimdComplexField>::SimdRealField) -> T
[src]
pub fn simd_real(self) -> <T as SimdComplexField>::SimdRealField
[src]
pub fn simd_imaginary(self) -> <T as SimdComplexField>::SimdRealField
[src]
pub fn simd_modulus(self) -> <T as SimdComplexField>::SimdRealField
[src]
pub fn simd_modulus_squared(self) -> <T as SimdComplexField>::SimdRealField
[src]
pub fn simd_argument(self) -> <T as SimdComplexField>::SimdRealField
[src]
pub fn simd_norm1(self) -> <T as SimdComplexField>::SimdRealField
[src]
pub fn simd_scale(self, factor: <T as SimdComplexField>::SimdRealField) -> T
[src]
pub fn simd_unscale(self, factor: <T as SimdComplexField>::SimdRealField) -> T
[src]
pub fn simd_to_polar(
self
) -> (<T as SimdComplexField>::SimdRealField, <T as SimdComplexField>::SimdRealField)
[src]
self
) -> (<T as SimdComplexField>::SimdRealField, <T as SimdComplexField>::SimdRealField)