pub trait ComplexExt<T, D: Dimension> {
// Required methods
fn abs(&self) -> Array<T, D>;
fn imag(&self) -> Array<T, D>;
fn real(&self) -> Array<T, D>;
fn phase(&self) -> Array<T, D>;
fn from_real_imag(
real: Array<T, D>,
imag: Array<T, D>,
) -> Array<Complex<T>, D>;
}Expand description
Trait for converting between real and complex numbers.
This trait is implemented for both 1D and 2D arrays.
Required Methods§
fn abs(&self) -> Array<T, D>
fn imag(&self) -> Array<T, D>
fn real(&self) -> Array<T, D>
fn phase(&self) -> Array<T, D>
fn from_real_imag(real: Array<T, D>, imag: Array<T, D>) -> Array<Complex<T>, D>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".