Skip to main content

eigsh

Function eigsh 

Source
pub fn eigsh(
    a: &dyn LinearOperator,
    k: usize,
    which: Which,
    tol: f64,
) -> Result<EigenPairs>
Expand description

k eigenvalues and eigenvectors of a symmetric operator (SciPy’s eigsh). The Lanczos process builds an orthonormal basis Q of the Krylov subspace in which A is tridiagonal, QᵀAQ = T; the eigenvalues of T (Ritz values) approximate the extreme eigenvalues of A, with residual norms |β_m s_{m,i}| known without forming the vectors. Full reorthogonalisation keeps Q orthonormal in floating point; if the wanted Ritz values have not converged to tol relative accuracy, the subspace is doubled.