All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Genfun::GaudiMathImplementation::Constant Class Reference

Fixed constant function. More...

#include <GaudiMath/Constant.h>

Inheritance diagram for Genfun::GaudiMathImplementation::Constant:
Collaboration diagram for Genfun::GaudiMathImplementation::Constant:

Public Member Functions

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

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..nosp@m.Bely.nosp@m.aev@i.nosp@m.tep..nosp@m.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
valueof the function
dimdimensionality

Definition at line 31 of file Constant.cpp.

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

copy constructor

Definition at line 43 of file Constant.cpp.

44  : AbsFunction()
45  , m_value ( right.m_value )
46  , m_DIM ( right.m_DIM )
47  {}
Genfun::GaudiMathImplementation::Constant::~Constant ( )
virtual

destructor

Definition at line 53 of file Constant.cpp.

53 {}
Genfun::GaudiMathImplementation::Constant::Constant ( )
private

Member Function Documentation

virtual unsigned int Genfun::GaudiMathImplementation::Constant::dimensionality ( ) const
inlinevirtual

dimensionality of the problem

Definition at line 50 of file Constant.h.

50 { return m_DIM ; }
virtual bool Genfun::GaudiMathImplementation::Constant::hasAnalyticDerivative ( ) const
inlinevirtual

Does this function have an analytic derivative?

Definition at line 52 of file Constant.h.

52 { return true ; }
virtual double Genfun::GaudiMathImplementation::Constant::operator() ( double  ) const
inlinevirtual

Function value.

Definition at line 54 of file Constant.h.

virtual double Genfun::GaudiMathImplementation::Constant::operator() ( const Argument &  ) const
inlinevirtual

Function value.

Definition at line 56 of file Constant.h.

Constant& Genfun::GaudiMathImplementation::Constant::operator= ( const Constant )
private
Derivative Genfun::GaudiMathImplementation::Constant::partial ( unsigned int  i) const
virtual

Derivatives.

Definition at line 59 of file Constant.cpp.

60  {
61  const AbsFunction& aux = Constant( 0.0 , m_DIM );
62  return FunctionNoop( &aux );
63  }

Member Data Documentation

size_t Genfun::GaudiMathImplementation::Constant::m_DIM
private

Definition at line 70 of file Constant.h.

double Genfun::GaudiMathImplementation::Constant::m_value
private

Definition at line 69 of file Constant.h.


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