Trait ndarray_linalg::types::AssociatedReal [−][src]
pub trait AssociatedReal: Sized { type Real: RealScalar; fn inject(_: Self::Real) -> Self; fn real(self) -> Self::Real; fn imag(self) -> Self::Real; fn add_real(self, _: Self::Real) -> Self; fn sub_real(self, _: Self::Real) -> Self; fn mul_real(self, _: Self::Real) -> Self; fn div_real(self, _: Self::Real) -> Self; }
Define associating real float type
Associated Types
type Real: RealScalar
Required Methods
fn inject(_: Self::Real) -> Self
fn real(self) -> Self::Real
Returns the real part of self
.
fn imag(self) -> Self::Real
Returns the imaginary part of self
.
fn add_real(self, _: Self::Real) -> Self
fn sub_real(self, _: Self::Real) -> Self
fn mul_real(self, _: Self::Real) -> Self
fn div_real(self, _: Self::Real) -> Self
Implementations on Foreign Types
impl AssociatedReal for f64
[src]
impl AssociatedReal for f64
impl AssociatedReal for f32
[src]
impl AssociatedReal for f32