Skip to main content

lsqr_matlab_f32

Function lsqr_matlab_f32 

Source
fn lsqr_matlab_f32<F, G>(
    apply_a: F,
    apply_ah: G,
    b: Vec<Complex32>,
    nx: usize,
    tol: f64,
    max_iter: usize,
) -> (Vec<Complex32>, LsqrOutcome)
where F: FnMut(&[Complex32], &mut [Complex32]), G: FnMut(&[Complex32], &mut [Complex32]),
Expand description

MATLAB lsqr (zero initial guess, no preconditioner) on single data: the iteration and stopping rules of lsqr_matlab, with every vector and scalar in single precision, as MATLAB runs it when b and the operator’s results are single (a double scalar such as tol or eps meeting a single one is rounded to single first).