All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
Constant.cpp
Go to the documentation of this file.
1 // ============================================================================
2 // Include files
3 // local
4 #include "GaudiMath/Constant.h"
5 
13 namespace Genfun
14 {
15  namespace GaudiMathImplementation
16  {
17  // ========================================================================
19  // ========================================================================
20  FUNCTION_OBJECT_IMP( Constant )
21  // ========================================================================
22 
23  // ========================================================================
28  // ========================================================================
30  ( const double value ,
31  const size_t dim )
32  : AbsFunction ()
33  , m_value ( value )
34  , m_DIM ( dim )
35  {}
36  // ========================================================================
37 
38  // ========================================================================
40  // ========================================================================
42  ( const Constant& right )
43  : AbsFunction()
44  , m_value ( right.m_value )
45  , m_DIM ( right.m_DIM )
46  {}
47  // ========================================================================
48 
49  // ========================================================================
51  // ========================================================================
53  // ========================================================================
54 
55  // ========================================================================
57  // ========================================================================
58  Derivative Constant::partial ( unsigned int /* index */ ) const
59  {
60  const AbsFunction& aux = Constant( 0.0 , m_DIM );
61  return FunctionNoop( &aux );
62  }
63  // ========================================================================
64 
65 
66  } // end of namespace GaudiMathImplementation
67 
68 } // end of namespace Genfun (due to CLHEP)
69 
70 // ============================================================================
71 // The END
72 // ============================================================================
Fixed constant function.
Definition: Constant.h:31
Genfun::GaudiMathImplementation::NumericalDerivative Derivative
Definition: GaudiMath.h:29
Derivative partial(unsigned int i) const override
Derivatives.
Definition: Constant.cpp:58
CLHEP.
Definition: IEqSolver.h:13
Genfun::GaudiMathImplementation::Constant Constant
Definition: GaudiMath.h:27