Open
Description
right now, the fit.Func1D
and fit.FuncND
automatically compute the gradient of the provided function to fit, using gonum/diff/fd
(a package that applies numerical differentiation to approximate the derivatives).
we should probably consider exposing the Grad
field, making it optional, so users could provide an implementation - perhaps generated with gonum/autodiff. (we should probably provide such an example.)