pub type c64 = Complex<f64>;Expand description
Alias for a 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 Geev for c64
impl Geev for c64
Source§fn geev(
jobvl: JobVl,
jobvr: JobVr,
n: usize,
a: &mut [Self],
lda: usize,
w: &mut [Self::Complex],
vl: Option<&mut [Self::Complex]>,
ldvl: usize,
vr: Option<&mut [Self::Complex]>,
ldvr: usize,
) -> LapackResult<()>
fn geev( jobvl: JobVl, jobvr: JobVr, n: usize, a: &mut [Self], lda: usize, w: &mut [Self::Complex], vl: Option<&mut [Self::Complex]>, ldvl: usize, vr: Option<&mut [Self::Complex]>, ldvr: usize, ) -> LapackResult<()>
Compute the eigenvalues and, optionally, the eigenvectors of a general matrix.
Source§impl Gesdd for c64
impl Gesdd for c64
Source§fn gesdd(
jobz: JobZ,
m: usize,
n: usize,
a: &mut [Self],
lda: usize,
s: &mut [Self::Real],
u: Option<&mut [Self]>,
ldu: usize,
vt: Option<&mut [Self]>,
ldvt: usize,
) -> LapackResult<()>
fn gesdd( jobz: JobZ, m: usize, n: usize, a: &mut [Self], lda: usize, s: &mut [Self::Real], u: Option<&mut [Self]>, ldu: usize, vt: Option<&mut [Self]>, ldvt: usize, ) -> LapackResult<()>
Perform a singular value decomposition (SVD) of a matrix
a with dimensions m x n.
If jobz is JobZ::N, the singular vectors are not computed and u and vt can be
None.Source§impl Gesvd for c64
impl Gesvd for c64
Source§fn gesvd(
jobu: JobU,
jobvt: JobVt,
m: usize,
n: usize,
a: &mut [Self],
lda: usize,
s: &mut [Self::Real],
u: Option<&mut [Self]>,
ldu: usize,
vt: Option<&mut [Self]>,
ldvt: usize,
) -> LapackResult<()>
fn gesvd( jobu: JobU, jobvt: JobVt, m: usize, n: usize, a: &mut [Self], lda: usize, s: &mut [Self::Real], u: Option<&mut [Self]>, ldu: usize, vt: Option<&mut [Self]>, ldvt: usize, ) -> LapackResult<()>
Perform a singular value decomposition (SVD) of a matrix
a with dimensions m x n.
If either jobu or jobvt is JobU::N or JobVt::N, the corresponding singular vectors
are not computed, and the array u or correspondingly vt is not referenced and can be
None.Source§impl RandScalar for c64
impl RandScalar for c64
Source§fn random_scalar<R: Rng, D: Distribution<<Self as RlstScalar>::Real>>(
rng: &mut R,
dist: &D,
) -> Self
fn random_scalar<R: Rng, D: Distribution<<Self as RlstScalar>::Real>>( rng: &mut R, dist: &D, ) -> Self
Returns a random number from a given random number generator
rng and associated
distribution dist.Source§impl RlstScalar for c64
impl RlstScalar for c64
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
Source§fn add_complex(self, im: Self::Complex) -> Self::Complex
fn add_complex(self, im: Self::Complex) -> Self::Complex
Add a complex number
Source§fn sub_complex(self, im: Self::Complex) -> Self::Complex
fn sub_complex(self, im: Self::Complex) -> Self::Complex
Subtract a complex number
Source§fn mul_complex(self, im: Self::Complex) -> Self::Complex
fn mul_complex(self, im: Self::Complex) -> Self::Complex
Multiply by a complex number
Source§fn div_complex(self, im: Self::Complex) -> Self::Complex
fn div_complex(self, im: Self::Complex) -> Self::Complex
Divide by a complex number