Trait rds_tensors::types::complex::Complex [] [src]

pub trait Complex<T> where
    Self: Sized + Copy
{ fn cartesian(re: T, im: T) -> Self;
fn polar(abs: T, arg: T) -> Self;
fn re(self) -> T;
fn im(self) -> T;
fn abs(self) -> T;
fn arg(self) -> T;
fn conj(self) -> Self;
fn reciprocal(self) -> Self; fn to_polar(self) -> (T, T) { ... } }

Trait defining basic operations on complex types.

Required Methods

Create a complex from a set of cartesian coordinates.

Create a complex from a set of polar coordinates.

Return the real part of the complex.

Return the imaginary part of the complex.

Return the absolute value of the complex.

Return the argument of the complex.

Return the conjugate value of the complex.

Return the reciprocal value of the complex.

Provided Methods

Return a tuple forming the polar coordinates of the complex (abs,arg).

Implementors