Skip to main content

eigs_shift_invert

Function eigs_shift_invert 

Source
pub fn eigs_shift_invert(
    a: &CsrMatrix,
    k: usize,
    sigma: f64,
    options: &EigsOptions,
) -> Result<EigsResult>
Expand description

The k eigenvalues of a sparse matrix nearest the real shift σ, with eigenvectors (SciPy’s eigs(A, k, sigma=σ)). The eigenvalues λ near σ are the largest in magnitude of (A − σI)⁻¹, θ = 1/(λ − σ), which Arnoldi finds quickly; each product with the inverse is one solve with a sparse LU factorisation of A − σI. The values are returned nearest first.