ComplexScalar

Trait ComplexScalar 

Source
pub trait ComplexScalar:
    ComplexScalarMutateParts
    + Conjugate
    + Arg<Output = Self::RealType>
    + for<'a> Mul<&'a Self::RealType, Output = Self>
    + for<'a> MulAssign<&'a Self::RealType>
    + for<'a> Pow<&'a Self::RealType, Error = PowComplexBaseRealExponentErrors<Self::RawComplex>> {
    // Provided methods
    fn scale(self, c: &Self::RealType) -> Self { ... }
    fn scale_mut(&mut self, c: &Self::RealType) { ... }
}
Expand description

§Trait for scalar complex numbers

Provided Methods§

Source

fn scale(self, c: &Self::RealType) -> Self

Scale the complex number self by the real coefficient c.

Source

fn scale_mut(&mut self, c: &Self::RealType)

Scale (in-place) the complex number self by the real coefficient c.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl ComplexScalar for Complex<f64>

Implement the ComplexScalar trait for the Complex<f64> type.

Implementors§