Skip to main content

sparse_eig_power

Function sparse_eig_power 

Source
pub fn sparse_eig_power(
    a: &CsrMatrix,
    tol: f64,
    max_iter: usize,
) -> Option<(f64, Vec<f64>)>
Expand description

Compute the dominant eigenvalue and eigenvector of a sparse matrix using the power method.

Returns (eigenvalue, eigenvector) or None if not converged.