Trait rft::Complex [] [src]

pub trait Complex: Zero + One + Clone {
    fn real(&self) -> Precision;
    fn imag(&self) -> Precision;

    fn to_num(&self) -> Complex<Precision> { ... }
}

Trait representing complex numbers.

Required Methods

Gets the real part.

Gets the imaginary part.

Provided Methods

Returns a num::Complex so it can be used internally.

Implementors