Trait faer_core::ComplexField
source · pub trait ComplexField: Copy + Add<Output = Self> + Sub<Output = Self> + Mul<Output = Self> + Div<Output = Self> + Neg<Output = Self> + Send + Sync + Debug + 'static {
type Real: RealField;
fn from_real(real: Self::Real) -> Self;
fn into_real_imag(self) -> (Self::Real, Self::Real);
fn zero() -> Self;
fn one() -> Self;
fn inv(self) -> Self;
fn conj(self) -> Self;
fn sqrt(self) -> Self;
fn score(self) -> Self::Real;
fn real(self) -> Self::Real { ... }
fn imag(self) -> Self::Real { ... }
fn scale(self, factor: Self::Real) -> Self { ... }
fn abs(self) -> Self::Real { ... }
}
Expand description
Required Associated Types
Required Methods
sourcefn from_real(real: Self::Real) -> Self
fn from_real(real: Self::Real) -> Self
Returns a complex number whose real part is equal to real
, and a zero imaginary part.
sourcefn into_real_imag(self) -> (Self::Real, Self::Real)
fn into_real_imag(self) -> (Self::Real, Self::Real)
Returns the real and imaginary part.