pub struct SpectralDecomposition {
pub matrix: Vec<Vec<f64>>,
}Expand description
Spectral decomposition (eigendecomposition) of a real matrix.
Fields§
§matrix: Vec<Vec<f64>>The matrix stored in row-major order.
Implementations§
Source§impl SpectralDecomposition
impl SpectralDecomposition
Sourcepub fn eigenvalues(&self) -> Vec<f64>
pub fn eigenvalues(&self) -> Vec<f64>
Compute eigenvalues of a real symmetric matrix via the QR algorithm (simplified).
For a 1×1 or 2×2 matrix this is exact; for larger matrices we use 30 QR iterations.
Sourcepub fn eigenvectors(&self) -> Vec<Vec<f64>>
pub fn eigenvectors(&self) -> Vec<Vec<f64>>
Return an identity-matrix approximation of the eigenvectors (placeholder).
Sourcepub fn is_symmetric(&self) -> bool
pub fn is_symmetric(&self) -> bool
Check whether the matrix is symmetric (Aᵢⱼ = Aⱼᵢ).
Auto Trait Implementations§
impl Freeze for SpectralDecomposition
impl RefUnwindSafe for SpectralDecomposition
impl Send for SpectralDecomposition
impl Sync for SpectralDecomposition
impl Unpin for SpectralDecomposition
impl UnsafeUnpin for SpectralDecomposition
impl UnwindSafe for SpectralDecomposition
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