Logo ROOT  
Reference Guide
FunctionGradient.h
Go to the documentation of this file.
1 // @(#)root/minuit2:$Id$
2 // Authors: M. Winkler, F. James, L. Moneta, A. Zsenei 2003-2005
3 
4 /**********************************************************************
5  * *
6  * Copyright (c) 2005 LCG ROOT Math team, CERN/PH-SFT *
7  * *
8  **********************************************************************/
9 
10 #ifndef ROOT_Minuit2_FunctionGradient
11 #define ROOT_Minuit2_FunctionGradient
12 
15 
16 namespace ROOT {
17 
18  namespace Minuit2 {
19 
20 
21 class FunctionGradient {
22 
23 private:
24 
25 public:
26 
27  explicit FunctionGradient(unsigned int n) :
28  fData(MnRefCountedPointer<BasicFunctionGradient>(new BasicFunctionGradient(n))) {}
29 
30  explicit FunctionGradient(const MnAlgebraicVector& grd) :
32 
34  const MnAlgebraicVector& gstep) :
36 
38 
39  FunctionGradient(const FunctionGradient& grad) : fData(grad.fData) {}
40 
42  fData = grad.fData;
43  return *this;
44  }
45 
46  const MnAlgebraicVector& Grad() const {return fData->Grad();}
47  const MnAlgebraicVector& Vec() const {return fData->Vec();}
48  bool IsValid() const {return fData->IsValid();}
49 
50  bool IsAnalytical() const {return fData->IsAnalytical();}
51  const MnAlgebraicVector& G2() const {return fData->G2();}
52  const MnAlgebraicVector& Gstep() const {return fData->Gstep();}
53 
54 private:
55 
57 };
58 
59  } // namespace Minuit2
60 
61 } // namespace ROOT
62 
63 #endif // ROOT_Minuit2_FunctionGradient
n
const Int_t n
Definition: legend1.C:16
ROOT::Minuit2::FunctionGradient::IsValid
bool IsValid() const
Definition: FunctionGradient.h:60
ROOT::Minuit2::LAVector
Definition: LAVector.h:41
ROOT::Minuit2::FunctionGradient::FunctionGradient
FunctionGradient(unsigned int n)
Definition: FunctionGradient.h:39
ROOT::Minuit2::FunctionGradient::Vec
const MnAlgebraicVector & Vec() const
Definition: FunctionGradient.h:59
ROOT::Minuit2::FunctionGradient::IsAnalytical
bool IsAnalytical() const
Definition: FunctionGradient.h:62
MnRefCountedPointer.h
ROOT::Minuit2::FunctionGradient
Definition: FunctionGradient.h:29
ROOT::Minuit2::FunctionGradient::G2
const MnAlgebraicVector & G2() const
Definition: FunctionGradient.h:63
ROOT::Minuit2::BasicFunctionGradient
Definition: BasicFunctionGradient.h:32
ROOT::Minuit2::MnRefCountedPointer
Definition: MnRefCountedPointer.h:28
ROOT::Minuit2::FunctionGradient::Grad
const MnAlgebraicVector & Grad() const
Definition: FunctionGradient.h:58
ROOT::Minuit2::FunctionGradient::operator=
FunctionGradient & operator=(const FunctionGradient &grad)
Definition: FunctionGradient.h:53
ROOT::Minuit2::FunctionGradient::Gstep
const MnAlgebraicVector & Gstep() const
Definition: FunctionGradient.h:64
ROOT::Minuit2::FunctionGradient::fData
MnRefCountedPointer< BasicFunctionGradient > fData
Definition: FunctionGradient.h:68
ROOT::Minuit2::FunctionGradient::~FunctionGradient
~FunctionGradient()
Definition: FunctionGradient.h:49
BasicFunctionGradient.h
ROOT
VSD Structures.
Definition: StringConv.hxx:21