Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-30 10:22:11

0001 // @(#)root/minuit2:$Id$
0002 // Authors: M. Winkler, F. James, L. Moneta, A. Zsenei   2003-2005
0003 
0004 /**********************************************************************
0005  *                                                                    *
0006  * Copyright (c) 2005 LCG ROOT Math team,  CERN/PH-SFT                *
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    interface class for gradient calculators
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 } // namespace Minuit2
0041 
0042 } // namespace ROOT
0043 
0044 #endif // ROOT_Minuit2_GradientCalculator