All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Constant.cpp
Go to the documentation of this file.
1 // $Id: Constant.cpp,v 1.1 2003/11/19 16:55:59 mato Exp $
2 // ============================================================================
3 // Include files
4 // local
5 #include "GaudiMath/Constant.h"
6 
14 namespace Genfun
15 {
16  namespace GaudiMathImplementation
17  {
18  // ========================================================================
20  // ========================================================================
21  FUNCTION_OBJECT_IMP( Constant )
22  // ========================================================================
23 
24  // ========================================================================
29  // ========================================================================
31  ( const double value ,
32  const size_t dim )
33  : AbsFunction ()
34  , m_value ( value )
35  , m_DIM ( dim )
36  {}
37  // ========================================================================
38 
39  // ========================================================================
41  // ========================================================================
43  ( const Constant& right )
44  : AbsFunction()
45  , m_value ( right.m_value )
46  , m_DIM ( right.m_DIM )
47  {}
48  // ========================================================================
49 
50  // ========================================================================
52  // ========================================================================
54  // ========================================================================
55 
56  // ========================================================================
58  // ========================================================================
59  Derivative Constant::partial ( unsigned int /* index */ ) const
60  {
61  const AbsFunction& aux = Constant( 0.0 , m_DIM );
62  return FunctionNoop( &aux );
63  }
64  // ========================================================================
65 
66 
67  } // end of namespace GaudiMathImplementation
68 
69 } // end of namespace Genfun (due to CLHEP)
70 
71 // ============================================================================
72 // The END
73 // ============================================================================
Fixed constant function.
Definition: Constant.h:25
Genfun::GaudiMathImplementation::NumericalDerivative Derivative
Definition: GaudiMath.h:31
virtual Derivative partial(unsigned int i) const
Derivatives.
Definition: Constant.cpp:59
Genfun::GaudiMathImplementation::Constant Constant
Definition: GaudiMath.h:29