pub fn lsmr_solve<F, G>(
a_op: F,
at_op: G,
b: &[f64],
lambda: f64,
tol: f64,
max_iter: usize,
) -> Vec<f64>Expand description
LSMR solver
Solves min ||Ax - b||₂ where A is a linear operator.
§Arguments
a_op- Closure that computes A*xat_op- Closure that computes Aᵀ*yb- Right-hand side vectorlambda- Regularization parameter (0 for standard least squares)tol- Convergence tolerancemax_iter- Maximum iterations
§Returns
Solution vector x