ComplexToReal

Trait ComplexToReal 

Source
pub trait ComplexToReal<T> {
    // Required method
    fn to_real_vec(&self) -> Vec<T>;
}
Expand description

Used to convert a slice of Complex into a slice of Real.

Required Methods§

Source

fn to_real_vec(&self) -> Vec<T>

Produces a vector of real numbers, given a slice of complex numbers.

Implementations on Foreign Types§

Source§

impl<T: Copy + Num> ComplexToReal<T> for [Complex<T>]

Source§

fn to_real_vec(&self) -> Vec<T>

Implementors§