pub struct EigenDecomposition<S: Scalar> { /* private fields */ }Expand description
General eigendecomposition (complex eigenvalues for real matrices).
Stores real and imaginary parts of eigenvalues separately to avoid exposing complex number types in the public API.
Implementations§
Source§impl EigenDecomposition<f64>
impl EigenDecomposition<f64>
Sourcepub fn new(matrix: &DenseMatrix<f64>) -> Result<Self, LinalgError>
pub fn new(matrix: &DenseMatrix<f64>) -> Result<Self, LinalgError>
Compute general eigenvalues of a real matrix.
Returns eigenvalues as separate real and imaginary parts. Complex eigenvalues come in conjugate pairs.
Source§impl EigenDecomposition<f32>
impl EigenDecomposition<f32>
Sourcepub fn new(matrix: &DenseMatrix<f32>) -> Result<Self, LinalgError>
pub fn new(matrix: &DenseMatrix<f32>) -> Result<Self, LinalgError>
Compute general eigenvalues of a real matrix (f32).
Source§impl<S: Scalar> EigenDecomposition<S>
impl<S: Scalar> EigenDecomposition<S>
Sourcepub fn eigenvalues_real(&self) -> &[S]
pub fn eigenvalues_real(&self) -> &[S]
Real parts of eigenvalues.
Sourcepub fn eigenvalues_imag(&self) -> &[S]
pub fn eigenvalues_imag(&self) -> &[S]
Imaginary parts of eigenvalues.
Auto Trait Implementations§
impl<S> Freeze for EigenDecomposition<S>
impl<S> RefUnwindSafe for EigenDecomposition<S>where
S: RefUnwindSafe,
impl<S> Send for EigenDecomposition<S>
impl<S> Sync for EigenDecomposition<S>
impl<S> Unpin for EigenDecomposition<S>where
S: Unpin,
impl<S> UnsafeUnpin for EigenDecomposition<S>
impl<S> UnwindSafe for EigenDecomposition<S>where
S: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more