| # Gaudi Framework, version v25r0 |

Home |  | Generated: Mon Feb 17 2014

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes
- Files

- Class List
- Class Index
- Class Hierarchy
- Class Members

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Public Member Functions | Private Member Functions | Private Attributes | List of all members
Genfun::GaudiMathImplementation::Constant Class Reference

Fixed constant function. More...

`#include <GaudiMath/Constant.h>`

Inheritance diagram for Genfun::GaudiMathImplementation::Constant:
[legend]
Collaboration diagram for Genfun::GaudiMathImplementation::Constant:
[legend]

## 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 ()
Constant & | operator= (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

  value | of the function
  dim | dimensionality

Definition at line 31 of file Constant.cpp.

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

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

copy constructor

Definition at line 43 of file Constant.cpp.

: AbsFunction()
, m_value ( right.m_value )
, m_DIM ( right.m_DIM )
{}

Genfun::GaudiMathImplementation::Constant::~Constant | ( |  | ) |
| virtual

destructor

Definition at line 53 of file Constant.cpp.

{}

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.

{ 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.

{ return true ; }

virtual double Genfun::GaudiMathImplementation::Constant::operator() | ( | double |  | ) | const
| inline virtual

Function value.

Definition at line 54 of file Constant.h.

{ return m_value ; }

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

Function value.

Definition at line 56 of file Constant.h.

{ return m_value ; }

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.

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

## 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:

- /afs/cern.ch/sw/Gaudi/releases/GAUDI/GAUDI_v25r0/GaudiGSL/GaudiMath/Constant.h
- /afs/cern.ch/sw/Gaudi/releases/GAUDI/GAUDI_v25r0/GaudiGSL/src/Lib/Constant.cpp