The Gaudi Framework  v30r3 (a5ef0a68)
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, const size_t dim ) : AbsFunction(), m_value( value ), m_DIM( dim ) {}
30  // ========================================================================
31 
32  // ========================================================================
34  // ========================================================================
35  Derivative Constant::partial( unsigned int /* index */ ) const
36  {
37  const AbsFunction& aux = Constant( 0.0, m_DIM );
38  return FunctionNoop( &aux );
39  }
40  // ========================================================================
41 
42  } // end of namespace GaudiMathImplementation
43 
44 } // end of namespace Genfun (due to CLHEP)
45 
46 // ============================================================================
47 // The END
48 // ============================================================================
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:27
Derivative partial(unsigned int i) const override
Derivatives.
Definition: Constant.cpp:35
Genfun::GaudiMathImplementation::Constant Constant
Definition: GaudiMath.h:26