Struct psk_std::complex::Complex [] [src]

pub struct Complex {
    pub re: f64,
    pub im: f64,
}

Complex number

Fields

Real component of complex number

Imaginary component of complex number

Methods

impl Complex
[src]

[src]

Create a new complex number

[src]

Compute the complex conjugate of a number

Trait Implementations

impl Clone for Complex
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Copy for Complex
[src]

impl Debug for Complex
[src]

[src]

Formats the value using the given formatter.

impl PartialEq for Complex
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

[src]

This method tests for !=.

impl Add for Complex
[src]

The resulting type after applying the + operator.

[src]

Performs the + operation.

impl Sub for Complex
[src]

The resulting type after applying the - operator.

[src]

Performs the - operation.

impl Mul for Complex
[src]

The resulting type after applying the * operator.

[src]

Performs the * operation.

impl Div for Complex
[src]

The resulting type after applying the / operator.

[src]

Performs the / operation.

impl Neg for Complex
[src]

The resulting type after applying the - operator.

[src]

Performs the unary - operation.