Skip to main content

power_iteration

Function power_iteration 

Source
pub fn power_iteration(
    matrix: &CsrMatrix,
    max_iterations: usize,
    tolerance: f64,
) -> Result<(Vec<f64>, f64)>
Expand description

Power iteration for dominant eigenvector.

Computes the eigenvector corresponding to the largest eigenvalue of the matrix using iterative multiplication.