Skip to main content

lsqr

Function lsqr 

Source
pub fn lsqr(
    a: &dyn LinearOperator,
    b: &[f64],
    options: IterativeOptions,
) -> Result<IterativeResult>
Expand description

LSQR for min ‖A x − b‖ with any rectangular A (Paige and Saunders; SciPy’s lsqr): Golub-Kahan bidiagonalisation of A, mathematically CG on the normal equations but stable. It stops when ‖r‖ ≤ btol ‖b‖ + atol ‖A‖ ‖x‖ (a consistent system) or ‖Aᵀr‖ ≤ atol ‖A‖ ‖r‖ (a least-squares solution), with SciPy’s atol = btol = 10⁻⁶ by default (options.rtol is used for both).