Loading [MathJax]/extensions/tex2jax.js
The Gaudi Framework  v29r3 (fa547fc2)
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...
 
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...
 
Constantoperator= (const Constant &)=delete
 

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 29 of file Constant.cpp.

29 : AbsFunction(), m_value( value ), m_DIM( dim ) {}

Member Function Documentation

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

dimensionality of the problem

Definition at line 45 of file Constant.h.

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

Does this function have an analytic derivative?

Definition at line 47 of file Constant.h.

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

Function value.

Definition at line 49 of file Constant.h.

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

Function value.

Definition at line 51 of file Constant.h.

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

Derivatives.

Definition at line 35 of file Constant.cpp.

36  {
37  const AbsFunction& aux = Constant( 0.0, m_DIM );
38  return FunctionNoop( &aux );
39  }
Constant(const double value, const size_t dim)
From CLHEP/GenericFunctions.
Definition: Constant.cpp:29

Member Data Documentation

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

Definition at line 60 of file Constant.h.

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

Definition at line 59 of file Constant.h.


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