File indexing completed on 2025-01-30 10:22:11
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010 #ifndef ROOT_Minuit2_GradientCalculator
0011 #define ROOT_Minuit2_GradientCalculator
0012
0013 #include "Minuit2/MnMatrixfwd.h"
0014
0015 namespace ROOT {
0016
0017 namespace Minuit2 {
0018
0019 class MinimumParameters;
0020 class FunctionGradient;
0021
0022
0023
0024
0025 class GradientCalculator {
0026
0027 public:
0028 virtual ~GradientCalculator() {}
0029
0030 virtual FunctionGradient operator()(const MinimumParameters &) const = 0;
0031
0032 virtual FunctionGradient operator()(const MinimumParameters &, const FunctionGradient &) const = 0;
0033
0034 virtual bool Hessian(const MinimumParameters &, MnAlgebraicSymMatrix &) const { return false;}
0035
0036 virtual bool G2(const MinimumParameters &, MnAlgebraicVector &) const { return false;}
0037
0038 };
0039
0040 }
0041
0042 }
0043
0044 #endif