fn nltgv(
local_field: &[f64],
mask: &[u8],
grid: &Grid,
bdir: (f64, f64, f64),
params: &FansiParams,
progress: impl FnMut(usize, usize),
) -> Vec<f64>Expand description
Nonlinear total-generalized-variation dipole inversion (FANSI nlTGV.m).
Everything (operators + normal-equation cofactors) is built from the local,
unscaled spectral gradient multipliers E1,E2,E3 to stay self-consistent
with the MATLAB Cramer-rule algebra.