pub fn lsqr_complex<F, G>(
apply_a: F,
apply_ah: G,
b: &[Complex64],
tol: f64,
max_iter: usize,
verbose: bool,
) -> Vec<Complex64> ⓘExpand description
LSQR iterative solver for Ax = b (complex version)
Solves the least squares problem min ||Ax - b||² using the LSQR algorithm. Based on Paige & Saunders (1982), with convergence tests matching MATLAB’s lsqr.
Convergence tests (matching MATLAB):
- ||r|| / ||b|| <= btol + atol * ||A|| * ||x|| / ||b|| (residual test)
- ||A’r|| / (||A|| * ||r||) <= atol (normal equations test)