Trait ndarray_linalg::types::Scalar [−][src]
Associated Types
type Real: Scalar + Float + NumOps<Self::Real, Self::Real>
[src]
type Complex: Scalar + NumOps<Self::Real, Self::Complex> + NumOps<Self::Complex, Self::Complex>
[src]
Required methods
pub fn real<T>(re: T) -> Self::Real where
T: ToPrimitive,
[src]
T: ToPrimitive,
Create a new real number
pub fn complex<T>(re: T, im: T) -> Self::Complex where
T: ToPrimitive,
[src]
T: ToPrimitive,
Create a new complex number
pub fn from_real(re: Self::Real) -> Self
[src]
pub fn add_real(self, re: Self::Real) -> Self
[src]
pub fn sub_real(self, re: Self::Real) -> Self
[src]
pub fn mul_real(self, re: Self::Real) -> Self
[src]
pub fn div_real(self, re: Self::Real) -> Self
[src]
pub fn add_complex(self, im: Self::Complex) -> Self::Complex
[src]
pub fn sub_complex(self, im: Self::Complex) -> Self::Complex
[src]
pub fn mul_complex(self, im: Self::Complex) -> Self::Complex
[src]
pub fn div_complex(self, im: Self::Complex) -> Self::Complex
[src]
pub fn pow(self, n: Self) -> Self
[src]
pub fn powi(self, n: i32) -> Self
[src]
pub fn powf(self, n: Self::Real) -> Self
[src]
pub fn powc(self, n: Self::Complex) -> Self::Complex
[src]
pub fn re(&self) -> Self::Real
[src]
Real part
pub fn im(&self) -> Self::Real
[src]
Imaginary part
pub fn as_c(&self) -> Self::Complex
[src]
As a complex number
pub fn conj(&self) -> Self
[src]
Complex conjugate
pub fn abs(self) -> Self::Real
[src]
Absolute value
pub fn square(self) -> Self::Real
[src]
Sqaure of absolute value
pub fn sqrt(self) -> Self
[src]
pub fn exp(self) -> Self
[src]
pub fn ln(self) -> Self
[src]
pub fn sin(self) -> Self
[src]
pub fn cos(self) -> Self
[src]
pub fn tan(self) -> Self
[src]
pub fn asin(self) -> Self
[src]
pub fn acos(self) -> Self
[src]
pub fn atan(self) -> Self
[src]
pub fn sinh(self) -> Self
[src]
pub fn cosh(self) -> Self
[src]
pub fn tanh(self) -> Self
[src]
pub fn asinh(self) -> Self
[src]
pub fn acosh(self) -> Self
[src]
pub fn atanh(self) -> Self
[src]
pub fn rand(rng: &mut impl Rng) -> Self
[src]
Generate an random number from rand::distributions::Standard
Implementations on Foreign Types
impl Scalar for Complex<f32>
[src]
type Real = f32
type Complex = Complex<f32>
pub fn re(&self) -> <Complex<f32> as Scalar>::Real
[src]
pub fn im(&self) -> <Complex<f32> as Scalar>::Real
[src]
pub fn from_real(re: <Complex<f32> as Scalar>::Real) -> Complex<f32>
[src]
pub fn pow(self, n: Complex<f32>) -> Complex<f32>
[src]
pub fn powi(self, n: i32) -> Complex<f32>
[src]
pub fn powf(self, n: <Complex<f32> as Scalar>::Real) -> Complex<f32>
[src]
pub fn powc(
self,
n: <Complex<f32> as Scalar>::Complex
) -> <Complex<f32> as Scalar>::Complex
[src]
self,
n: <Complex<f32> as Scalar>::Complex
) -> <Complex<f32> as Scalar>::Complex
pub fn real<T>(re: T) -> <Complex<f32> as Scalar>::Real where
T: ToPrimitive,
[src]
T: ToPrimitive,
pub fn complex<T>(re: T, im: T) -> <Complex<f32> as Scalar>::Complex where
T: ToPrimitive,
[src]
T: ToPrimitive,
pub fn as_c(&self) -> <Complex<f32> as Scalar>::Complex
[src]
pub fn conj(&self) -> Complex<f32>
[src]
pub fn square(self) -> <Complex<f32> as Scalar>::Real
[src]
pub fn abs(self) -> <Complex<f32> as Scalar>::Real
[src]
pub fn rand(rng: &mut impl Rng) -> Complex<f32>
[src]
pub fn add_real(self, re: <Complex<f32> as Scalar>::Real) -> Complex<f32>
[src]
pub fn sub_real(self, re: <Complex<f32> as Scalar>::Real) -> Complex<f32>
[src]
pub fn mul_real(self, re: <Complex<f32> as Scalar>::Real) -> Complex<f32>
[src]
pub fn div_real(self, re: <Complex<f32> as Scalar>::Real) -> Complex<f32>
[src]
pub fn add_complex(
self,
im: <Complex<f32> as Scalar>::Complex
) -> <Complex<f32> as Scalar>::Complex
[src]
self,
im: <Complex<f32> as Scalar>::Complex
) -> <Complex<f32> as Scalar>::Complex
pub fn sub_complex(
self,
im: <Complex<f32> as Scalar>::Complex
) -> <Complex<f32> as Scalar>::Complex
[src]
self,
im: <Complex<f32> as Scalar>::Complex
) -> <Complex<f32> as Scalar>::Complex
pub fn mul_complex(
self,
im: <Complex<f32> as Scalar>::Complex
) -> <Complex<f32> as Scalar>::Complex
[src]
self,
im: <Complex<f32> as Scalar>::Complex
) -> <Complex<f32> as Scalar>::Complex
pub fn div_complex(
self,
im: <Complex<f32> as Scalar>::Complex
) -> <Complex<f32> as Scalar>::Complex
[src]
self,
im: <Complex<f32> as Scalar>::Complex
) -> <Complex<f32> as Scalar>::Complex
pub fn sqrt(self) -> Complex<f32>
[src]
pub fn exp(self) -> Complex<f32>
[src]
pub fn ln(self) -> Complex<f32>
[src]
pub fn sin(self) -> Complex<f32>
[src]
pub fn cos(self) -> Complex<f32>
[src]
pub fn tan(self) -> Complex<f32>
[src]
pub fn sinh(self) -> Complex<f32>
[src]
pub fn cosh(self) -> Complex<f32>
[src]
pub fn tanh(self) -> Complex<f32>
[src]
pub fn asin(self) -> Complex<f32>
[src]
pub fn acos(self) -> Complex<f32>
[src]
pub fn atan(self) -> Complex<f32>
[src]
pub fn asinh(self) -> Complex<f32>
[src]
pub fn acosh(self) -> Complex<f32>
[src]
pub fn atanh(self) -> Complex<f32>
[src]
impl Scalar for f32
[src]
type Real = f32
type Complex = Complex<f32>
pub fn re(&self) -> <f32 as Scalar>::Real
[src]
pub fn im(&self) -> <f32 as Scalar>::Real
[src]
pub fn from_real(re: <f32 as Scalar>::Real) -> f32
[src]
pub fn pow(self, n: f32) -> f32
[src]
pub fn powi(self, n: i32) -> f32
[src]
pub fn powf(self, n: <f32 as Scalar>::Real) -> f32
[src]
pub fn powc(self, n: <f32 as Scalar>::Complex) -> <f32 as Scalar>::Complex
[src]
pub fn real<T>(re: T) -> <f32 as Scalar>::Real where
T: ToPrimitive,
[src]
T: ToPrimitive,
pub fn complex<T>(re: T, im: T) -> <f32 as Scalar>::Complex where
T: ToPrimitive,
[src]
T: ToPrimitive,
pub fn as_c(&self) -> <f32 as Scalar>::Complex
[src]
pub fn conj(&self) -> f32
[src]
pub fn square(self) -> <f32 as Scalar>::Real
[src]
pub fn rand(rng: &mut impl Rng) -> f32
[src]
pub fn add_real(self, re: <f32 as Scalar>::Real) -> f32
[src]
pub fn sub_real(self, re: <f32 as Scalar>::Real) -> f32
[src]
pub fn mul_real(self, re: <f32 as Scalar>::Real) -> f32
[src]
pub fn div_real(self, re: <f32 as Scalar>::Real) -> f32
[src]
pub fn add_complex(
self,
im: <f32 as Scalar>::Complex
) -> <f32 as Scalar>::Complex
[src]
self,
im: <f32 as Scalar>::Complex
) -> <f32 as Scalar>::Complex
pub fn sub_complex(
self,
im: <f32 as Scalar>::Complex
) -> <f32 as Scalar>::Complex
[src]
self,
im: <f32 as Scalar>::Complex
) -> <f32 as Scalar>::Complex
pub fn mul_complex(
self,
im: <f32 as Scalar>::Complex
) -> <f32 as Scalar>::Complex
[src]
self,
im: <f32 as Scalar>::Complex
) -> <f32 as Scalar>::Complex
pub fn div_complex(
self,
im: <f32 as Scalar>::Complex
) -> <f32 as Scalar>::Complex
[src]
self,
im: <f32 as Scalar>::Complex
) -> <f32 as Scalar>::Complex
pub fn sqrt(self) -> f32
[src]
pub fn abs(self) -> f32
[src]
pub fn exp(self) -> f32
[src]
pub fn ln(self) -> f32
[src]
pub fn sin(self) -> f32
[src]
pub fn cos(self) -> f32
[src]
pub fn tan(self) -> f32
[src]
pub fn sinh(self) -> f32
[src]
pub fn cosh(self) -> f32
[src]
pub fn tanh(self) -> f32
[src]
pub fn asin(self) -> f32
[src]
pub fn acos(self) -> f32
[src]
pub fn atan(self) -> f32
[src]
pub fn asinh(self) -> f32
[src]
pub fn acosh(self) -> f32
[src]
pub fn atanh(self) -> f32
[src]
impl Scalar for f64
[src]
type Real = f64
type Complex = Complex<f64>
pub fn re(&self) -> <f64 as Scalar>::Real
[src]
pub fn im(&self) -> <f64 as Scalar>::Real
[src]
pub fn from_real(re: <f64 as Scalar>::Real) -> f64
[src]
pub fn pow(self, n: f64) -> f64
[src]
pub fn powi(self, n: i32) -> f64
[src]
pub fn powf(self, n: <f64 as Scalar>::Real) -> f64
[src]
pub fn powc(self, n: <f64 as Scalar>::Complex) -> <f64 as Scalar>::Complex
[src]
pub fn real<T>(re: T) -> <f64 as Scalar>::Real where
T: ToPrimitive,
[src]
T: ToPrimitive,
pub fn complex<T>(re: T, im: T) -> <f64 as Scalar>::Complex where
T: ToPrimitive,
[src]
T: ToPrimitive,
pub fn as_c(&self) -> <f64 as Scalar>::Complex
[src]
pub fn conj(&self) -> f64
[src]
pub fn square(self) -> <f64 as Scalar>::Real
[src]
pub fn rand(rng: &mut impl Rng) -> f64
[src]
pub fn add_real(self, re: <f64 as Scalar>::Real) -> f64
[src]
pub fn sub_real(self, re: <f64 as Scalar>::Real) -> f64
[src]
pub fn mul_real(self, re: <f64 as Scalar>::Real) -> f64
[src]
pub fn div_real(self, re: <f64 as Scalar>::Real) -> f64
[src]
pub fn add_complex(
self,
im: <f64 as Scalar>::Complex
) -> <f64 as Scalar>::Complex
[src]
self,
im: <f64 as Scalar>::Complex
) -> <f64 as Scalar>::Complex
pub fn sub_complex(
self,
im: <f64 as Scalar>::Complex
) -> <f64 as Scalar>::Complex
[src]
self,
im: <f64 as Scalar>::Complex
) -> <f64 as Scalar>::Complex
pub fn mul_complex(
self,
im: <f64 as Scalar>::Complex
) -> <f64 as Scalar>::Complex
[src]
self,
im: <f64 as Scalar>::Complex
) -> <f64 as Scalar>::Complex
pub fn div_complex(
self,
im: <f64 as Scalar>::Complex
) -> <f64 as Scalar>::Complex
[src]
self,
im: <f64 as Scalar>::Complex
) -> <f64 as Scalar>::Complex
pub fn sqrt(self) -> f64
[src]
pub fn abs(self) -> f64
[src]
pub fn exp(self) -> f64
[src]
pub fn ln(self) -> f64
[src]
pub fn sin(self) -> f64
[src]
pub fn cos(self) -> f64
[src]
pub fn tan(self) -> f64
[src]
pub fn sinh(self) -> f64
[src]
pub fn cosh(self) -> f64
[src]
pub fn tanh(self) -> f64
[src]
pub fn asin(self) -> f64
[src]
pub fn acos(self) -> f64
[src]
pub fn atan(self) -> f64
[src]
pub fn asinh(self) -> f64
[src]
pub fn acosh(self) -> f64
[src]
pub fn atanh(self) -> f64
[src]
impl Scalar for Complex<f64>
[src]
type Real = f64
type Complex = Complex<f64>
pub fn re(&self) -> <Complex<f64> as Scalar>::Real
[src]
pub fn im(&self) -> <Complex<f64> as Scalar>::Real
[src]
pub fn from_real(re: <Complex<f64> as Scalar>::Real) -> Complex<f64>
[src]
pub fn pow(self, n: Complex<f64>) -> Complex<f64>
[src]
pub fn powi(self, n: i32) -> Complex<f64>
[src]
pub fn powf(self, n: <Complex<f64> as Scalar>::Real) -> Complex<f64>
[src]
pub fn powc(
self,
n: <Complex<f64> as Scalar>::Complex
) -> <Complex<f64> as Scalar>::Complex
[src]
self,
n: <Complex<f64> as Scalar>::Complex
) -> <Complex<f64> as Scalar>::Complex
pub fn real<T>(re: T) -> <Complex<f64> as Scalar>::Real where
T: ToPrimitive,
[src]
T: ToPrimitive,
pub fn complex<T>(re: T, im: T) -> <Complex<f64> as Scalar>::Complex where
T: ToPrimitive,
[src]
T: ToPrimitive,
pub fn as_c(&self) -> <Complex<f64> as Scalar>::Complex
[src]
pub fn conj(&self) -> Complex<f64>
[src]
pub fn square(self) -> <Complex<f64> as Scalar>::Real
[src]
pub fn abs(self) -> <Complex<f64> as Scalar>::Real
[src]
pub fn rand(rng: &mut impl Rng) -> Complex<f64>
[src]
pub fn add_real(self, re: <Complex<f64> as Scalar>::Real) -> Complex<f64>
[src]
pub fn sub_real(self, re: <Complex<f64> as Scalar>::Real) -> Complex<f64>
[src]
pub fn mul_real(self, re: <Complex<f64> as Scalar>::Real) -> Complex<f64>
[src]
pub fn div_real(self, re: <Complex<f64> as Scalar>::Real) -> Complex<f64>
[src]
pub fn add_complex(
self,
im: <Complex<f64> as Scalar>::Complex
) -> <Complex<f64> as Scalar>::Complex
[src]
self,
im: <Complex<f64> as Scalar>::Complex
) -> <Complex<f64> as Scalar>::Complex
pub fn sub_complex(
self,
im: <Complex<f64> as Scalar>::Complex
) -> <Complex<f64> as Scalar>::Complex
[src]
self,
im: <Complex<f64> as Scalar>::Complex
) -> <Complex<f64> as Scalar>::Complex
pub fn mul_complex(
self,
im: <Complex<f64> as Scalar>::Complex
) -> <Complex<f64> as Scalar>::Complex
[src]
self,
im: <Complex<f64> as Scalar>::Complex
) -> <Complex<f64> as Scalar>::Complex
pub fn div_complex(
self,
im: <Complex<f64> as Scalar>::Complex
) -> <Complex<f64> as Scalar>::Complex
[src]
self,
im: <Complex<f64> as Scalar>::Complex
) -> <Complex<f64> as Scalar>::Complex