You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[Minuit2] Merge FCNAdapter with -GradAdapter and use only std::function
The base classes `FCNBase` and `FCNGradientBase` were already unified in
71806b3, and the Minuit code can be further simplified by merging
also the derived adapter class for `std::function` objects.
This will also make it easier for the users, because then don't have to
use different classes depending on whether they pass external gradients
or not.
We also make the new `FCNAdapter` purely `std::function` based, instead
of using a template parameter. This makes is possible to use Minuit2
directly from Python, as we can benefit from the `std::function`
pythonization.
It also makes the Minuit2 code more consistent, because `std::function`
was already used for the G2 (second derivatives) and the Hessian.
0 commit comments