The Gaudi Framework  v28r3 (cc1cf868)
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  // ========================================================================
29  Constant::Constant ( const double value ,
30  const size_t dim )
31  : AbsFunction ()
32  , m_value ( value )
33  , m_DIM ( dim )
34  {}
35  // ========================================================================
36 
37  // ========================================================================
39  // ========================================================================
40  Derivative Constant::partial ( unsigned int /* index */ ) const
41  {
42  const AbsFunction& aux = Constant( 0.0 , m_DIM );
43  return FunctionNoop( &aux );
44  }
45  // ========================================================================
46 
47  } // end of namespace GaudiMathImplementation
48 
49 } // end of namespace Genfun (due to CLHEP)
50 
51 // ============================================================================
52 // The END
53 // ============================================================================
Fixed constant function.
Definition: Constant.h:31
Constant(const double value, const size_t dim)
From CLHEP/GenericFunctions.
Definition: Constant.cpp:29
Genfun::GaudiMathImplementation::NumericalDerivative Derivative
Definition: GaudiMath.h:29
Derivative partial(unsigned int i) const override
Derivatives.
Definition: Constant.cpp:40
CLHEP.
Definition: IEqSolver.h:13
Genfun::GaudiMathImplementation::Constant Constant
Definition: GaudiMath.h:27