Skip to main content

svds

Function svds 

Source
pub fn svds(
    a: &dyn LinearOperator,
    k: usize,
    tol: f64,
) -> Result<(Vec<f64>, Array2<f64>, Array2<f64>)>
Expand description

The k largest singular values with their left and right singular vectors (columns), descending (SciPy’s svds, which returns them ascending). Golub-Kahan bidiagonalisation A V = U B with full reorthogonalisation, the SVD of the small bidiagonal B, a doubled subspace until the residuals are below tol, and deflation for repeated singular values.