Gaudi Framework, version v21r11

Home   Generated: 30 Sep 2010

Genfun::GaudiMathImplementation::Constant Class Reference

Fixed constant function. More...

#include <GaudiMath/Constant.h>

List of all members.

Public Member Functions

 Constant (const double value, const size_t dim)
 From CLHEP/GenericFunctions.
 Constant (const Constant &right)
 copy constructor
virtual ~Constant ()
 destructor
virtual unsigned int dimensionality () const
 dimensionality of the problem
virtual bool hasAnalyticDerivative () const
 Does this function have an analytic derivative?
virtual double operator() (double) const
 Function value.
virtual double operator() (const Argument &) const
 Function value.
virtual Derivative partial (unsigned int i) const
 Derivatives.

Private Member Functions

 Constant ()
Constantoperator= (const Constant &)

Private Attributes

double m_value
size_t m_DIM


Detailed Description

Fixed constant function.

Author:
Vanya BELYAEV Ivan.Belyaev@itep.ru
Date:
2003-08-31

Definition at line 25 of file Constant.h.


Constructor & Destructor Documentation

Genfun::GaudiMathImplementation::Constant::Constant ( const double  value,
const size_t  dim 
)

From CLHEP/GenericFunctions.

from CLHGEP/GenericFunctions

Standard constructor

Parameters:
value of the function
dim dimensionality
Standard constructor
Parameters:
value of the function
dim dimensionality

Definition at line 31 of file Constant.cpp.

00033       : AbsFunction () 
00034       , m_value     ( value ) 
00035       , m_DIM       ( dim   ) 
00036     {}

Genfun::GaudiMathImplementation::Constant::Constant ( const Constant right  ) 

copy constructor

Definition at line 43 of file Constant.cpp.

00044       : AbsFunction() 
00045       , m_value ( right.m_value ) 
00046       , m_DIM   ( right.m_DIM   )
00047     {}

Genfun::GaudiMathImplementation::Constant::~Constant (  )  [virtual]

destructor

Definition at line 53 of file Constant.cpp.

00053 {}

Genfun::GaudiMathImplementation::Constant::Constant (  )  [private]


Member Function Documentation

virtual unsigned int Genfun::GaudiMathImplementation::Constant::dimensionality (  )  const [inline, virtual]

dimensionality of the problem

Definition at line 50 of file Constant.h.

00050 { return m_DIM   ; }

virtual bool Genfun::GaudiMathImplementation::Constant::hasAnalyticDerivative (  )  const [inline, virtual]

Does this function have an analytic derivative?

Definition at line 52 of file Constant.h.

00052 { return true    ; }

virtual double Genfun::GaudiMathImplementation::Constant::operator() ( double   )  const [inline, virtual]

Function value.

Definition at line 54 of file Constant.h.

00054 { return m_value ; }

virtual double Genfun::GaudiMathImplementation::Constant::operator() ( const Argument &   )  const [inline, virtual]

Function value.

Definition at line 56 of file Constant.h.

00056 { return m_value ; }

Derivative Genfun::GaudiMathImplementation::Constant::partial ( unsigned int  i  )  const [virtual]

Derivatives.

Definition at line 59 of file Constant.cpp.

00060     {
00061       const AbsFunction& aux = Constant( 0.0 , m_DIM );
00062       return FunctionNoop( &aux );
00063     }

Constant& Genfun::GaudiMathImplementation::Constant::operator= ( const Constant  )  [private]


Member Data Documentation

Definition at line 69 of file Constant.h.

Definition at line 70 of file Constant.h.


The documentation for this class was generated from the following files:

Generated at Thu Sep 30 09:59:04 2010 for Gaudi Framework, version v21r11 by Doxygen version 1.5.6 written by Dimitri van Heesch, © 1997-2004