ROOT
6.06/09
Reference Guide
|
Wrapper class to the gsl_function C structure.
This class to fill the GSL C structure gsl_function with the C++ function objcet. Use the class ROOT::Math::GSLFunctionAdapter to adapt the C++ function object to the right signature (function pointer type) requested by GSL
Definition at line 57 of file GSLFunctionWrapper.h.
Public Member Functions | |
GSLFunctionWrapper () | |
void | SetFuncPointer (GSLFuncPointer f) |
set in the GSL C struct the pointer to the function evaluation More... | |
void | SetParams (void *p) |
set in the GSL C struct the extra-object pointer More... | |
template<class FuncType > | |
void | SetFunction (const FuncType &f) |
fill the GSL C struct from a generic C++ callable object implementing operator() More... | |
gsl_function * | GetFunc () |
GSLFuncPointer | FunctionPtr () |
double | operator() (double x) |
bool | IsValid () |
check if function is valid (has been set) More... | |
Private Attributes | |
gsl_function | fFunc |
|
inline |
Definition at line 61 of file GSLFunctionWrapper.h.
|
inline |
Definition at line 85 of file GSLFunctionWrapper.h.
|
inline |
Definition at line 83 of file GSLFunctionWrapper.h.
Referenced by ROOT::Math::GSLDerivator::EvalBackward(), ROOT::Math::GSLDerivator::EvalCentral(), ROOT::Math::GSLDerivator::EvalForward(), ROOT::Math::ChebyshevApprox::Initialize(), ROOT::Math::GSLIntegrator::Integral(), ROOT::Math::GSLIntegrator::IntegralCauchy(), ROOT::Math::GSLIntegrator::IntegralLow(), ROOT::Math::GSLIntegrator::IntegralUp(), ROOT::Math::GSLRootFinder::SetFunction(), and ROOT::Math::GSLMinimizer1D::SetFunction().
|
inline |
check if function is valid (has been set)
Definition at line 91 of file GSLFunctionWrapper.h.
Referenced by ROOT::Math::GSLIntegrator::CheckFunction(), ROOT::Math::GSLDerivator::EvalBackward(), ROOT::Math::GSLDerivator::EvalCentral(), ROOT::Math::GSLDerivator::EvalForward(), and ROOT::Math::GSLRootFinder::Iterate().
Definition at line 88 of file GSLFunctionWrapper.h.
|
inline |
set in the GSL C struct the pointer to the function evaluation
Definition at line 68 of file GSLFunctionWrapper.h.
Referenced by ROOT::Math::ChebyshevApprox::Initialize(), SetFunction(), ROOT::Math::GSLDerivator::SetFunction(), ROOT::Math::GSLRootFinder::SetFunction(), ROOT::Math::GSLMinimizer1D::SetFunction(), and ROOT::Math::GSLIntegrator::SetFunction().
|
inline |
fill the GSL C struct from a generic C++ callable object implementing operator()
Definition at line 76 of file GSLFunctionWrapper.h.
Referenced by ROOT::Math::GSLDerivator::EvalBackward(), ROOT::Math::GSLDerivator::EvalCentral(), ROOT::Math::GSLDerivator::EvalForward(), ROOT::Math::GSLDerivator::SetFunction(), ROOT::Math::GSLRootFinder::SetFunction(), and ROOT::Math::GSLIntegrator::SetFunction().
set in the GSL C struct the extra-object pointer
Definition at line 71 of file GSLFunctionWrapper.h.
Referenced by ROOT::Math::ChebyshevApprox::Initialize(), SetFunction(), ROOT::Math::GSLDerivator::SetFunction(), ROOT::Math::GSLRootFinder::SetFunction(), ROOT::Math::GSLMinimizer1D::SetFunction(), and ROOT::Math::GSLIntegrator::SetFunction().
|
private |
Definition at line 96 of file GSLFunctionWrapper.h.
Referenced by FunctionPtr(), GetFunc(), GSLFunctionWrapper(), IsValid(), operator()(), SetFuncPointer(), and SetParams().