PARTONS/NumA++
|
Numerical Analysis C++ routines
|
![]() |
Utilities for Functors. More...
Static Public Member Functions | |
template<typename PointerToObj , typename PointerToMemFn > | |
static Functor1D< PointerToObj, PointerToMemFn > * | newFunctor1D (PointerToObj *object, PointerToMemFn function) |
Defines a new functor with the given one-dimensional function. More... | |
template<typename PointerToObj , typename PointerToMemFn > | |
static FunctorMD< PointerToObj, PointerToMemFn > * | newFunctorMD (PointerToObj *object, PointerToMemFn function) |
Defines a new functor with the given multi-dimensional function. More... | |
Utilities for Functors.
|
inlinestatic |
Defines a new functor with the given one-dimensional function.
See FunctionType1D documentation for an example.
object | Pointer to the object instantiating a class where the function is defined as a method. |
function | Reference to the function defining the functor. Should have the following signature: double MyClass::myFunction(double variable, std::vector<double>& parameters);
|
|
inlinestatic |
Defines a new functor with the given multi-dimensional function.
See FunctionTypeMD documentation for an example.
object | Pointer to the object instantiating a class where the function is defined as a method. |
function | Reference to the function defining the functor. Should have the signature: double MyClass::myFunction(NumA::VectorD& variables, std::vector<double>& parameters);
|