multi_vfunct_cmfptr Class Template Reference

Member function pointer to a multi-dimensional function with arrays. More...

#include <multi_funct.h>

Inheritance diagram for multi_vfunct_cmfptr:

multi_vfunct

Detailed Description

template<class tclass, class param_t, size_t nvar>
class multi_vfunct_cmfptr< tclass, param_t, nvar >

Member function pointer to a multi-dimensional function with arrays.

Definition at line 848 of file multi_funct.h.


Public Member Functions

 multi_vfunct_cmfptr (tclass *tp, int(tclass::*fp)(size_t nv, const double x[nvar], double &y, param_t &pa) const)
 Specify the member function pointer.
virtual int operator() (size_t nv, const double x[nvar], 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 double x[nvar], 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 double x[nvar], double &y, param_t &pa) const
 Store the function pointer.
tclass * tptr
 Store a pointer to the class instance.

Private Member Functions

 multi_vfunct_cmfptr (const multi_vfunct_cmfptr &)
multi_vfunct_cmfptroperator= (const multi_vfunct_cmfptr &)

Member Function Documentation

virtual double operator() ( size_t  nv,
const double  x[nvar],
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_vfunct.

Definition at line 876 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.

Project hosting provided by SourceForge.net Logo, O2scl Sourceforge Project Page