| The Gaudi Framework v29r0 (ff2e7097)

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

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

Public 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. 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...
Constant & | operator= (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

  value | of the function
  dim | dimensionality

Definition at line 29 of file Constant.cpp.

29 : AbsFunction(), m_value( value ), m_DIM( dim ) {}
Genfun::GaudiMathImplementation::Constant::m_DIM
size_t m_DIM
Definition: Constant.h:60
Genfun::GaudiMathImplementation::Constant::m_value
double m_value
Definition: Constant.h:59

## Member Function Documentation

unsigned int Genfun::GaudiMathImplementation::Constant::dimensionality | ( |  | ) | const
| inline override

dimensionality of the problem

Definition at line 45 of file Constant.h.

45 { return m_DIM; }
Genfun::GaudiMathImplementation::Constant::m_DIM
size_t m_DIM
Definition: Constant.h:60

bool Genfun::GaudiMathImplementation::Constant::hasAnalyticDerivative | ( |  | ) | const
| inline override

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
| inline override

Function value.

Definition at line 49 of file Constant.h.

49 { return m_value; }
Genfun::GaudiMathImplementation::Constant::m_value
double m_value
Definition: Constant.h:59

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

Function value.

Definition at line 51 of file Constant.h.

51 { return m_value; }
Genfun::GaudiMathImplementation::Constant::m_value
double m_value
Definition: Constant.h:59

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 }
Genfun::GaudiMathImplementation::Constant::Constant
Constant(const double value, const size_t dim)
From CLHEP/GenericFunctions.
Definition: Constant.cpp:29
Genfun::GaudiMathImplementation::Constant::m_DIM
size_t m_DIM
Definition: Constant.h:60

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

- GaudiGSL/GaudiMath/Constant.h
- GaudiGSL/src/Lib/Constant.cpp