| The Gaudi Framework v27r1

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

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

Public Types | Public Member Functions | Private Member Functions | Private Attributes | List of all members
Genfun::GaudiMathImplementation::Adapter3DoubleFunction Class Reference

constructor from the trivial function with two argument More...

`#include <GaudiMath/Adapters.h>`

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

## Public Types
typedef double(* | Function) (const double, const double, const double)
| the actual type of the function "to be adapted" More...

## Public Member Functions
| Adapter3DoubleFunction (Function func)
| mandatory macro from CLHEP/GenericFunctions More...
| Adapter3DoubleFunction (const Adapter3DoubleFunction &)
| copy coinstructor More...
virtual | ~Adapter3DoubleFunction ()
| virtual destructor More...
virtual double | operator() (double x) const
virtual double | operator() (const Argument &x) const
virtual unsigned int | dimensionality () const
virtual bool | hasAnalyticDerivative () const
| Does this function have an analytic derivative? More...
virtual Genfun::Derivative | partial (unsigned int i) const
| Derivatives. More...
double | operator() (const double x, const double y, const double z) const

## Private Member Functions
| Adapter3DoubleFunction ()
Adapter3DoubleFunction & | operator= (const Adapter3DoubleFunction &)

## Private Attributes
Function | m_func

## Detailed Description

constructor from the trivial function with two argument

double func( const double , const double , const double ) ;
const AbsFuction& fun = Adapter2DoubleFunction( fun ) ;
// evaluate the function in point (1,2,3):
Argument arg(3) ;
arg[0] = 1 ;
arg[1] = 2 ;
arg[2] = 3 ;
double value = fun( arg ) ;

Parameters

  func | pointer to trivial function

Author
  Kirill Miklyaev kiril.nosp@m.lm@i.nosp@m.ris1..nosp@m.itep.nosp@m..ru
  Vanya BELYAEV Ivan..nosp@m.Bely.nosp@m.aev@i.nosp@m.tep..nosp@m.ru

Date
  2003-08-03

Definition at line 154 of file FunAdapters.h.

## Member Typedef Documentation

typedef double(* Genfun::GaudiMathImplementation::Adapter3DoubleFunction::Function) (const double, const double, const double)

the actual type of the function "to be adapted"

Definition at line 158 of file FunAdapters.h.

## Constructor & Destructor Documentation

Genfun::GaudiMathImplementation::Adapter3DoubleFunction::Adapter3DoubleFunction | ( | Adapter3DoubleFunction::Function | func | ) |

mandatory macro from CLHEP/GenericFunctions

constructor

Definition at line 104 of file Adapter.cpp.

105 : AbsFunction ( )
106 , m_func ( func )
107 {}
GaudiPluginService.cpluginsvc.func
tuple func
Definition: cpluginsvc.py:218
Genfun::GaudiMathImplementation::Adapter3DoubleFunction::m_func
Function m_func
Definition: FunAdapters.h:191

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

copy coinstructor

Definition at line 110 of file Adapter.cpp.

111 : AbsFunction ( )
112 , m_func ( right.m_func )
113 {}
std::right
T right(T...args)
Genfun::GaudiMathImplementation::Adapter3DoubleFunction::m_func
Function m_func
Definition: FunAdapters.h:191

Genfun::GaudiMathImplementation::Adapter3DoubleFunction::~Adapter3DoubleFunction | ( |  | ) |
| virtual default

virtual destructor

Genfun::GaudiMathImplementation::Adapter3DoubleFunction::Adapter3DoubleFunction | ( |  | ) |
| private

## Member Function Documentation

virtual unsigned int Genfun::GaudiMathImplementation::Adapter3DoubleFunction::dimensionality | ( |  | ) | const
| inline virtual

Definition at line 176 of file FunAdapters.h.

176 { return 3 ; }

virtual bool Genfun::GaudiMathImplementation::Adapter3DoubleFunction::hasAnalyticDerivative | ( |  | ) | const
| inline virtual

Does this function have an analytic derivative?

Definition at line 178 of file FunAdapters.h.

178 { return true ; }

double Genfun::GaudiMathImplementation::Adapter3DoubleFunction::operator() | ( | double | x | ) | const
| virtual

Definition at line 118 of file Adapter.cpp.

119 { return m_func ( x , 0 , 0 ) ; }
Genfun::GaudiMathImplementation::Adapter3DoubleFunction::m_func
Function m_func
Definition: FunAdapters.h:191

virtual double Genfun::GaudiMathImplementation::Adapter3DoubleFunction::operator() | ( | const Argument & | x | ) | const
| virtual

double Genfun::GaudiMathImplementation::Adapter3DoubleFunction::operator() | ( | const double | x,
|  | const double | y,
|  | const double | z
| ) |  | const

Definition at line 126 of file Adapter.cpp.

129 { return m_func ( x , y , z ) ; }
Genfun::GaudiMathImplementation::Adapter3DoubleFunction::m_func
Function m_func
Definition: FunAdapters.h:191

Adapter3DoubleFunction& Genfun::GaudiMathImplementation::Adapter3DoubleFunction::operator= | ( | const Adapter3DoubleFunction & |  | ) |
| private

Genfun::Derivative Genfun::GaudiMathImplementation::Adapter3DoubleFunction::partial | ( | unsigned int | i | ) | const
| virtual

Derivatives.

Definition at line 132 of file Adapter.cpp.

133 {
134 if ( i >= 3 )
135 {
136 const AbsFunction& aux = GaudiMath::Constant( 0 , 3 ) ;
137 return Genfun::FunctionNoop( &aux ) ;
138 };
139 const AbsFunction& aux = GaudiMath::Derivative( *this , i ) ;
140 return Genfun::FunctionNoop ( &aux ) ;
141 }
GaudiMath::Derivative
Genfun::GaudiMathImplementation::NumericalDerivative Derivative
Definition: GaudiMath.h:29
ana.i
list i
Definition: ana.py:128
GaudiMath::Constant
Genfun::GaudiMathImplementation::Constant Constant
Definition: GaudiMath.h:27

## Member Data Documentation

Function Genfun::GaudiMathImplementation::Adapter3DoubleFunction::m_func
| private

Definition at line 191 of file FunAdapters.h.

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

- GaudiGSL/GaudiMath/FunAdapters.h
- GaudiGSL/src/Lib/Adapter.cpp