Skip to main content

root_lm

Function root_lm 

Source
pub fn root_lm(
    fun: impl FnMut(&[f64]) -> Vec<f64>,
    jac: Option<JacobianFn<'_>>,
    x0: &[f64],
    options: LmOptions,
) -> Result<SystemRootResult, ErrorsJSL>
Expand description

A root of the square system F(x) = 0 by MINPACK’s Levenberg-Marquardt method (SciPy’s root(method="lm")): leastsq on ‖F‖². Converged when MINPACK stops on its ftol or xtol test (info 1–4) with ‖F‖∞ at most 1e-8; a local minimum of ‖F‖ that is not a root is reported as not converged.