Struct psk_std::complex::Complex
[−]
[src]
pub struct Complex { pub re: f64, pub im: f64, }
Complex number
Fields
re: f64
Real component of complex number
im: f64
Imaginary component of complex number
Methods
impl Complex
[src]
fn new(re: f64, im: f64) -> Complex
[src]
Create a new complex number
fn conj(self) -> Complex
[src]
Compute the complex conjugate of a number
Trait Implementations
impl Clone for Complex
[src]
fn clone(&self) -> Complex
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Copy for Complex
[src]
impl Debug for Complex
[src]
impl PartialEq for Complex
[src]
fn eq(&self, __arg_0: &Complex) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Complex) -> bool
[src]
This method tests for !=
.
impl Add for Complex
[src]
type Output = Complex
The resulting type after applying the +
operator.
fn add(self, rhs: Complex) -> Complex
[src]
Performs the +
operation.
impl Sub for Complex
[src]
type Output = Complex
The resulting type after applying the -
operator.
fn sub(self, rhs: Complex) -> Complex
[src]
Performs the -
operation.
impl Mul for Complex
[src]
type Output = Complex
The resulting type after applying the *
operator.
fn mul(self, rhs: Complex) -> Complex
[src]
Performs the *
operation.
impl Div for Complex
[src]
type Output = Complex
The resulting type after applying the /
operator.
fn div(self, rhs: Complex) -> Complex
[src]
Performs the /
operation.