|
Gaudi Framework, version v21r7 |
| Home | Generated: 22 Jan 2010 |
#include <GaudiMath/Adapters.h>
Public Types | |
| typedef double(* | Function )(const double, const double, const double) |
| the actual type of the function "to be adapted" | |
Public Member Functions | |
| FUNCTION_OBJECT_DEF (Adapter3DoubleFunction) | |
| mandatory macro from CLHEP/GenericFunctions | |
| Adapter3DoubleFunction (Function func) | |
| constructor | |
| Adapter3DoubleFunction (const Adapter3DoubleFunction &) | |
| copy coinstructor | |
| virtual | ~Adapter3DoubleFunction () |
| 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 double z) const |
Private Member Functions | |
| Adapter3DoubleFunction () | |
| Adapter3DoubleFunction & | operator= (const Adapter3DoubleFunction &) |
Private Attributes | |
| Function | m_func |
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 ) ;
| func | pointer to trivial function |
Definition at line 154 of file FunAdapters.h.
| typedef double(* Genfun::GaudiMathImplementation::Adapter3DoubleFunction::Function)(const double, const double, const double) |
the actual type of the function "to be adapted"
| Genfun::GaudiMathImplementation::Adapter3DoubleFunction::Adapter3DoubleFunction | ( | Adapter3DoubleFunction::Function | func | ) |
constructor
Definition at line 104 of file Adapter.cpp.
00105 : AbsFunction ( ) 00106 , m_func ( func ) 00107 {}
| Genfun::GaudiMathImplementation::Adapter3DoubleFunction::Adapter3DoubleFunction | ( | const Adapter3DoubleFunction & | right | ) |
| Genfun::GaudiMathImplementation::Adapter3DoubleFunction::~Adapter3DoubleFunction | ( | ) | [virtual] |
| Genfun::GaudiMathImplementation::Adapter3DoubleFunction::Adapter3DoubleFunction | ( | ) | [private] |
| Genfun::GaudiMathImplementation::Adapter3DoubleFunction::FUNCTION_OBJECT_DEF | ( | Adapter3DoubleFunction | ) |
mandatory macro from CLHEP/GenericFunctions
| double Genfun::GaudiMathImplementation::Adapter3DoubleFunction::operator() | ( | double | x | ) | const [virtual] |
| virtual double Genfun::GaudiMathImplementation::Adapter3DoubleFunction::operator() | ( | const Argument & | x | ) | const [virtual] |
| virtual unsigned int Genfun::GaudiMathImplementation::Adapter3DoubleFunction::dimensionality | ( | ) | const [inline, virtual] |
| virtual bool Genfun::GaudiMathImplementation::Adapter3DoubleFunction::hasAnalyticDerivative | ( | ) | const [inline, virtual] |
| Genfun::Derivative Genfun::GaudiMathImplementation::Adapter3DoubleFunction::partial | ( | unsigned int | i | ) | const [virtual] |
Derivatives.
Definition at line 132 of file Adapter.cpp.
00133 { 00134 if ( i >= 3 ) 00135 { 00136 const AbsFunction& aux = GaudiMath::Constant( 0 , 3 ) ; 00137 return Genfun::FunctionNoop( &aux ) ; 00138 }; 00139 const AbsFunction& aux = GaudiMath::Derivative( *this , i ) ; 00140 return Genfun::FunctionNoop ( &aux ) ; 00141 };
| double Genfun::GaudiMathImplementation::Adapter3DoubleFunction::operator() | ( | const double | x, | |
| const double | y, | |||
| const double | z | |||
| ) | const |
| Adapter3DoubleFunction& Genfun::GaudiMathImplementation::Adapter3DoubleFunction::operator= | ( | const Adapter3DoubleFunction & | ) | [private] |
Definition at line 191 of file FunAdapters.h.