pub struct Svd {
pub u: Matrix,
pub singular_values: Vec<f64>,
pub vt: Matrix,
pub rank: usize,
pub sweeps: usize,
pub max_column_correlation: f64,
}Fields§
§u: Matrixm by min(m,n), including an orthonormal completion of the null columns.
singular_values: Vec<f64>Nonnegative, descending, explicitly thresholded singular values.
vt: Matrixmin(m,n) by n; transpose, not conjugate transpose (real inputs only).
rank: usize§sweeps: usize§max_column_correlation: f64Implementations§
Source§impl Svd
impl Svd
pub fn factor( a: MatrixView<'_>, options: SvdOptions, ) -> Result<Self, SolverError>
Sourcepub fn solve(&self, b: MatrixView<'_>) -> Result<Matrix, SolverError>
pub fn solve(&self, b: MatrixView<'_>) -> Result<Matrix, SolverError>
Moore-Penrose minimum-norm solve using the explicitly truncated SVD. Supports over/underdetermined and rank-deficient problems, multiple RHS.
pub fn pseudo_inverse(&self) -> Result<Matrix, SolverError>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Svd
impl RefUnwindSafe for Svd
impl Send for Svd
impl Sync for Svd
impl Unpin for Svd
impl UnsafeUnpin for Svd
impl UnwindSafe for Svd
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