multi_funct_mfptr Class Template Reference

#include <multi_funct.h>

Inheritance diagram for multi_funct_mfptr:

multi_funct

Detailed Description

template<class tclass, class param_t, class vec_t = ovector_view>
class multi_funct_mfptr< tclass, param_t, vec_t >

Member function pointer to a multi-dimensional function.

Definition at line 263 of file multi_funct.h.


Public Member Functions

 multi_funct_mfptr (tclass *tp, int(tclass::*fp)(size_t nv, const vec_t &x, double &y, param_t &pa))
 Specify the member function pointer.
virtual ~multi_funct_mfptr ()
virtual int operator() (size_t nv, const vec_t &x, double &y, param_t &pa)
 Compute a function y of nv variables stored in x with parameter pa.
virtual double operator() (size_t nv, const vec_t &x, param_t &pa)
 Return the value of a function of nv variables stored in x with parameter pa.

Protected Attributes

int(tclass::* fptr )(size_t nv, const vec_t &x, double &y, param_t &pa)
 Store the function pointer.
tclass * tptr
 Store a pointer to the class instance.

Private Member Functions

 multi_funct_mfptr (const multi_funct_mfptr &)
multi_funct_mfptroperator= (const multi_funct_mfptr &)

Member Function Documentation

virtual double operator() ( size_t  nv,
const vec_t &  x,
param_t &  pa 
) [inline, virtual]

Return the value of a function of nv variables stored in x with parameter pa.

Note that this is reimplemented in all children because if one member function operator() is reimplemented, all must be.

Reimplemented from multi_funct.

Definition at line 289 of file multi_funct.h.


The documentation for this class was generated from the following file:
Documentation generated with Doxygen and provided under the GNU Free Documentation License. See License Information for details.