Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
ROOT::Math::WrappedMemMultiFunction< FuncObj, MemFuncPtr > Class Template Reference

template<typename FuncObj, typename MemFuncPtr>
class ROOT::Math::WrappedMemMultiFunction< FuncObj, MemFuncPtr >

Definition at line 182 of file WrappedFunction.h.

Public Member Functions

 WrappedMemMultiFunction (FuncObj &obj, MemFuncPtr memFn, unsigned int dim=1)
 construct from the pointer to the object and the member function
 
WrappedMemMultiFunction * Clone () const override
 clone (required by the interface)
 
unsigned int NDim () const override
 Retrieve the dimension of the function.
 
- Public Member Functions inherited from ROOT::Math::IBaseFunctionMultiDimTempl< double >
virtual ~IBaseFunctionMultiDimTempl ()=default
 
virtual ~IBaseFunctionMultiDimTempl ()=default
 
virtual bool HasGradient () const
 
virtual bool HasGradient () const
 
double operator() (const double *x) const
 Evaluate the function at a point x[].
 
double operator() (const double *x) const
 Evaluate the function at a point x[].
 

Private Member Functions

double DoEval (const double *x) const override
 Implementation of the evaluation function. Must be implemented by derived classes.
 

Private Attributes

unsigned int fDim
 
MemFuncPtr fMemFunc
 
FuncObj * fObj
 

Additional Inherited Members

- Public Types inherited from ROOT::Math::IBaseFunctionMultiDimTempl< double >
typedef double BackendType
 
typedef IBaseFunctionMultiDimTempl< double > BaseFunc
 

#include <Math/WrappedFunction.h>

Inheritance diagram for ROOT::Math::WrappedMemMultiFunction< FuncObj, MemFuncPtr >:
[legend]

Constructor & Destructor Documentation

◆ WrappedMemMultiFunction()

template<typename FuncObj, typename MemFuncPtr>
ROOT::Math::WrappedMemMultiFunction< FuncObj, MemFuncPtr >::WrappedMemMultiFunction ( FuncObj & obj,
MemFuncPtr memFn,
unsigned int dim = 1 )
inline

construct from the pointer to the object and the member function

Definition at line 190 of file WrappedFunction.h.

Member Function Documentation

◆ Clone()

template<typename FuncObj, typename MemFuncPtr>
WrappedMemMultiFunction * ROOT::Math::WrappedMemMultiFunction< FuncObj, MemFuncPtr >::Clone ( ) const
inlineoverridevirtual

clone (required by the interface)

Implements ROOT::Math::IBaseFunctionMultiDimTempl< double >.

Definition at line 199 of file WrappedFunction.h.

◆ DoEval()

template<typename FuncObj, typename MemFuncPtr>
double ROOT::Math::WrappedMemMultiFunction< FuncObj, MemFuncPtr >::DoEval ( const double * x) const
inlineoverrideprivatevirtual

Implementation of the evaluation function. Must be implemented by derived classes.

Implements ROOT::Math::IBaseFunctionMultiDimTempl< double >.

Definition at line 208 of file WrappedFunction.h.

◆ NDim()

template<typename FuncObj, typename MemFuncPtr>
unsigned int ROOT::Math::WrappedMemMultiFunction< FuncObj, MemFuncPtr >::NDim ( ) const
inlineoverridevirtual

Retrieve the dimension of the function.

Implements ROOT::Math::IBaseFunctionMultiDimTempl< double >.

Definition at line 204 of file WrappedFunction.h.

Member Data Documentation

◆ fDim

template<typename FuncObj, typename MemFuncPtr>
unsigned int ROOT::Math::WrappedMemMultiFunction< FuncObj, MemFuncPtr >::fDim
private

Definition at line 215 of file WrappedFunction.h.

◆ fMemFunc

template<typename FuncObj, typename MemFuncPtr>
MemFuncPtr ROOT::Math::WrappedMemMultiFunction< FuncObj, MemFuncPtr >::fMemFunc
private

Definition at line 214 of file WrappedFunction.h.

◆ fObj

template<typename FuncObj, typename MemFuncPtr>
FuncObj* ROOT::Math::WrappedMemMultiFunction< FuncObj, MemFuncPtr >::fObj
private

Definition at line 213 of file WrappedFunction.h.

  • math/mathcore/inc/Math/WrappedFunction.h