Loading [MathJax]/extensions/tex2jax.js
The Gaudi Framework  v31r0 (aeb156f0)
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  namespace GaudiMathImplementation {
15  // ========================================================================
17  // ========================================================================
18  FUNCTION_OBJECT_IMP( Constant )
19  // ========================================================================
20 
21  // ========================================================================
26  // ========================================================================
27  Constant::Constant( const double value, const size_t dim ) : AbsFunction(), m_value( value ), m_DIM( dim ) {}
28  // ========================================================================
29 
30  // ========================================================================
32  // ========================================================================
33  Derivative Constant::partial( unsigned int /* index */ ) const {
34  const AbsFunction& aux = Constant( 0.0, m_DIM );
35  return FunctionNoop( &aux );
36  }
37  // ========================================================================
38 
39  } // end of namespace GaudiMathImplementation
40 
41 } // namespace Genfun
42 
43 // ============================================================================
44 // The END
45 // ============================================================================
Fixed constant function.
Definition: Constant.h:30
Constant(const double value, const size_t dim)
From CLHEP/GenericFunctions.
Definition: Constant.cpp:27
Genfun::GaudiMathImplementation::NumericalDerivative Derivative
Definition: GaudiMath.h:26
Derivative partial(unsigned int i) const override
Derivatives.
Definition: Constant.cpp:33
CLHEP.
Definition: IEqSolver.h:13
Genfun::GaudiMathImplementation::Constant Constant
Definition: GaudiMath.h:25