pub type c32 = Complex<f32>;
Expand description
Alias for a Complex<f32>
Aliased Type§
struct c32 {
pub re: f32,
pub im: f32,
}
Fields§
§re: f32
Real portion of the complex number
im: f32
Imaginary portion of the complex number
Trait Implementations§
Source§impl Scalar for c32
impl Scalar for c32
type Real = f32
type Complex = Complex<f32>
fn from_real(re: Self::Real) -> Self
fn pow(self, n: Self) -> Self
fn powi(self, n: i32) -> Self
fn powf(self, n: Self::Real) -> Self
fn powc(self, n: Self::Complex) -> Self::Complex
Source§fn real<T: ToPrimitive>(re: T) -> Self::Real
fn real<T: ToPrimitive>(re: T) -> Self::Real
Create a new real number
Source§fn complex<T: ToPrimitive>(re: T, im: T) -> Self::Complex
fn complex<T: ToPrimitive>(re: T, im: T) -> Self::Complex
Create a new complex number
Source§fn rand(rng: &mut impl Rng) -> Self
fn rand(rng: &mut impl Rng) -> Self
Generate an random number from
rand::distributions::Standard