|
Gaudi Framework, version v21r7 |
| Home | Generated: 22 Jan 2010 |
#include <GaudiMath/Adapters.h>
Public Types | |
| typedef double(* | Function )(const double, const double) |
| the actual type of the function "to be adapted" | |
Public Member Functions | |
| FUNCTION_OBJECT_DEF (Adapter2DoubleFunction) | |
| mandatory macro from CLHEP/GenericFunctions | |
| Adapter2DoubleFunction (Function func) | |
| constructor | |
| Adapter2DoubleFunction (const Adapter2DoubleFunction &) | |
| copy coinstructor | |
| virtual | ~Adapter2DoubleFunction () |
| virtual destructor | |
| 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? | |
| virtual Genfun::Derivative | partial (unsigned int i) const |
| Derivatives. | |
| double | operator() (const double x, const double y) const |
Private Member Functions | |
| Adapter2DoubleFunction () | |
| Adapter2DoubleFunction & | operator= (const Adapter2DoubleFunction &) |
Private Attributes | |
| Function | m_func |
double func( const double , const double ) ; const AbsFuction& fun = Adapter2DoubleFunction( fun ) ; // evaluate the function in point (1,2): Argument arg(2) ; arg[0] = 1 ; arg[1] = 2 ; double value = fun( arg ) ;
| func | pointer to trivial function |
Definition at line 91 of file FunAdapters.h.
| typedef double(* Genfun::GaudiMathImplementation::Adapter2DoubleFunction::Function)(const double, const double) |
the actual type of the function "to be adapted"
| Genfun::GaudiMathImplementation::Adapter2DoubleFunction::Adapter2DoubleFunction | ( | Adapter2DoubleFunction::Function | func | ) |
constructor
Definition at line 63 of file Adapter.cpp.
00064 : AbsFunction ( ) 00065 , m_func ( func ) 00066 {}
| Genfun::GaudiMathImplementation::Adapter2DoubleFunction::Adapter2DoubleFunction | ( | const Adapter2DoubleFunction & | right | ) |
| Genfun::GaudiMathImplementation::Adapter2DoubleFunction::~Adapter2DoubleFunction | ( | ) | [virtual] |
| Genfun::GaudiMathImplementation::Adapter2DoubleFunction::Adapter2DoubleFunction | ( | ) | [private] |
| Genfun::GaudiMathImplementation::Adapter2DoubleFunction::FUNCTION_OBJECT_DEF | ( | Adapter2DoubleFunction | ) |
mandatory macro from CLHEP/GenericFunctions
| double Genfun::GaudiMathImplementation::Adapter2DoubleFunction::operator() | ( | double | x | ) | const [virtual] |
| virtual double Genfun::GaudiMathImplementation::Adapter2DoubleFunction::operator() | ( | const Argument & | x | ) | const [virtual] |
| virtual unsigned int Genfun::GaudiMathImplementation::Adapter2DoubleFunction::dimensionality | ( | ) | const [inline, virtual] |
| virtual bool Genfun::GaudiMathImplementation::Adapter2DoubleFunction::hasAnalyticDerivative | ( | ) | const [inline, virtual] |
| Genfun::Derivative Genfun::GaudiMathImplementation::Adapter2DoubleFunction::partial | ( | unsigned int | i | ) | const [virtual] |
Derivatives.
Definition at line 90 of file Adapter.cpp.
00091 { 00092 if ( i >= 2 ) 00093 { 00094 const AbsFunction& aux = GaudiMath::Constant( 0 , 2 ) ; 00095 return Genfun::FunctionNoop( &aux ) ; 00096 }; 00097 const AbsFunction& aux = GaudiMath::Derivative( *this , i ) ; 00098 return Genfun::FunctionNoop ( &aux ) ; 00099 };
| double Genfun::GaudiMathImplementation::Adapter2DoubleFunction::operator() | ( | const double | x, | |
| const double | y | |||
| ) | const |
| Adapter2DoubleFunction& Genfun::GaudiMathImplementation::Adapter2DoubleFunction::operator= | ( | const Adapter2DoubleFunction & | ) | [private] |
Definition at line 125 of file FunAdapters.h.