Skip to main content

lsmr

Function lsmr 

Source
pub fn lsmr(
    a: &dyn LinearOperator,
    b: &[f64],
    options: LsmrOptions,
) -> Result<LsmrResult>
Expand description

LSMR for min ‖A x − b‖² + λ² ‖x‖² (Fong and Saunders; SciPy’s lsmr). Like LSQR it builds the Golub-Kahan bidiagonalisation of A, but it minimises ‖Aᵀr‖ over the Krylov subspace rather than ‖r‖, so ‖Aᵀr‖ decreases monotonically and the iteration can be stopped safely early: the property that makes it the inner solver of large least-squares trust-region methods.