|
Gaudi Framework, version v23r2 |
| Home | Generated: Thu Jun 28 2012 |
constructor from the trivial function with two argument More...
#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 | |
| Adapter2DoubleFunction (Function func) | |
| mandatory macro from CLHEP/GenericFunctions | |
| 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 |
constructor from the trivial function with two argument
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"
Definition at line 95 of file FunAdapters.h.
| Genfun::GaudiMathImplementation::Adapter2DoubleFunction::Adapter2DoubleFunction | ( | Adapter2DoubleFunction::Function | func ) |
mandatory macro from CLHEP/GenericFunctions
constructor
Definition at line 64 of file Adapter.cpp.
: AbsFunction ( )
, m_func ( func )
{}
| Genfun::GaudiMathImplementation::Adapter2DoubleFunction::Adapter2DoubleFunction | ( | const Adapter2DoubleFunction & | right ) |
copy coinstructor
Definition at line 70 of file Adapter.cpp.
| Genfun::GaudiMathImplementation::Adapter2DoubleFunction::~Adapter2DoubleFunction | ( | ) | [virtual] |
| Genfun::GaudiMathImplementation::Adapter2DoubleFunction::Adapter2DoubleFunction | ( | ) | [private] |
| virtual unsigned int Genfun::GaudiMathImplementation::Adapter2DoubleFunction::dimensionality | ( | ) | const [inline, virtual] |
Definition at line 112 of file FunAdapters.h.
{ return 2 ; }
| virtual bool Genfun::GaudiMathImplementation::Adapter2DoubleFunction::hasAnalyticDerivative | ( | ) | const [inline, virtual] |
Does this function have an analytic derivative?
Definition at line 114 of file FunAdapters.h.
{ return true ; }
| double Genfun::GaudiMathImplementation::Adapter2DoubleFunction::operator() | ( | const double | x, |
| const double | y | ||
| ) | const |
Definition at line 86 of file Adapter.cpp.
{ return m_func ( x , y ) ; }
| virtual double Genfun::GaudiMathImplementation::Adapter2DoubleFunction::operator() | ( | const Argument & | x ) | const [virtual] |
| double Genfun::GaudiMathImplementation::Adapter2DoubleFunction::operator() | ( | double | x ) | const [virtual] |
Definition at line 78 of file Adapter.cpp.
{ return m_func ( x , 0 ) ; }
| Adapter2DoubleFunction& Genfun::GaudiMathImplementation::Adapter2DoubleFunction::operator= | ( | const Adapter2DoubleFunction & | ) | [private] |
| Genfun::Derivative Genfun::GaudiMathImplementation::Adapter2DoubleFunction::partial | ( | unsigned int | i ) | const [virtual] |
Derivatives.
Definition at line 91 of file Adapter.cpp.
{
if ( i >= 2 )
{
const AbsFunction& aux = GaudiMath::Constant( 0 , 2 ) ;
return Genfun::FunctionNoop( &aux ) ;
};
const AbsFunction& aux = GaudiMath::Derivative( *this , i ) ;
return Genfun::FunctionNoop ( &aux ) ;
}
Definition at line 125 of file FunAdapters.h.