pub type c64 = Complex<f64>;Expand description
Complex<f64>
Aliased Type§
#[repr(C)]pub struct c64 {
pub re: f64,
pub im: f64,
}Fields§
§re: f64Real portion of the complex number
im: f64Imaginary portion of the complex number
Trait Implementations§
Source§impl BitWidthConvertible for c64
impl BitWidthConvertible for c64
Source§impl ComplexScalar for c64
impl ComplexScalar for c64
Source§fn new(real: impl RealScalar, imag: impl RealScalar) -> Self
fn new(real: impl RealScalar, imag: impl RealScalar) -> Self
Create a complex number from real and imaginary parts
Source§fn from_real(real: impl RealScalar) -> Self
fn from_real(real: impl RealScalar) -> Self
Create a complex number from just the real part (imaginary = 0)
Source§fn standard_random() -> Self
fn standard_random() -> Self
Generate a random complex number with both real and imaginary parts from standard normal
Source§fn uniform_random(
real_min: Self::R,
real_max: Self::R,
imag_min: Self::R,
imag_max: Self::R,
) -> Self
fn uniform_random( real_min: Self::R, real_max: Self::R, imag_min: Self::R, imag_max: Self::R, ) -> Self
Generate a random complex number with both parts uniform in given ranges
Source§fn norm_squared(self) -> Self::R
fn norm_squared(self) -> Self::R
Calculate the squared norm (|z|²) of the complex number