All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules 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...
 
 ~Constant () override
 destructor More...
 
unsigned int dimensionality () const override
 dimensionality of the problem More...
 
bool hasAnalyticDerivative () const override
 Does this function have an analytic derivative? More...
 
double operator() (double) const override
 Function value. More...
 
double operator() (const Argument &) const override
 Function value. More...
 
Derivative partial (unsigned int i) const override
 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 31 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 30 of file Constant.cpp.

32  : AbsFunction ()
33  , m_value ( value )
34  , m_DIM ( dim )
35  {}
Genfun::GaudiMathImplementation::Constant::Constant ( const Constant right)

copy constructor

Definition at line 42 of file Constant.cpp.

43  : AbsFunction()
44  , m_value ( right.m_value )
45  , m_DIM ( right.m_DIM )
46  {}
T right(T...args)
Genfun::GaudiMathImplementation::Constant::~Constant ( )
override

destructor

Definition at line 52 of file Constant.cpp.

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

Member Function Documentation

unsigned int Genfun::GaudiMathImplementation::Constant::dimensionality ( ) const
inlineoverride

dimensionality of the problem

Definition at line 56 of file Constant.h.

bool Genfun::GaudiMathImplementation::Constant::hasAnalyticDerivative ( ) const
inlineoverride

Does this function have an analytic derivative?

Definition at line 58 of file Constant.h.

58 { return true ; }
double Genfun::GaudiMathImplementation::Constant::operator() ( double  ) const
inlineoverride

Function value.

Definition at line 60 of file Constant.h.

double Genfun::GaudiMathImplementation::Constant::operator() ( const Argument &  ) const
inlineoverride

Function value.

Definition at line 62 of file Constant.h.

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

Derivatives.

Definition at line 58 of file Constant.cpp.

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

Member Data Documentation

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

Definition at line 76 of file Constant.h.

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

Definition at line 75 of file Constant.h.


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