Complex64

Type Alias Complex64 

Source
pub type Complex64 = Complex<f64>;
Expand description

Alias for a Complex<f64>

Aliased Type§

#[repr(C)]
pub struct Complex64 { pub re: f64, pub im: f64, }

Fields§

§re: f64

Real portion of the complex number

§im: f64

Imaginary portion of the complex number

Trait Implementations§

Source§

impl ComplexAmplitude for Complex64

Source§

fn to_complex64(&self) -> Complex64

Convert to Complex64 for computation
Source§

fn from_complex64(c: Complex64) -> Self

Create from Complex64
Source§

fn norm_sqr(&self) -> f64

Get norm squared
Source§

fn scale(&mut self, factor: f64)

Multiply by scalar