multi_funct Class Template Reference

#include <multi_funct.h>

Inheritance diagram for multi_funct:

multi_funct_fptr multi_funct_fptr_noerr multi_funct_gsl multi_funct_mfptr multi_funct_mfptr_noerr

Detailed Description

template<class param_t, class vec_t = ovector_view>
class multi_funct< param_t, vec_t >

Multi-dimensional function base.

This class generalizes one function of several variables, i.e. $ y(x_0,x_1,...,x_{nv-1}) $ where nv is the number of variables in the function y.

Definition at line 41 of file multi_funct.h.


Public Member Functions

 multi_funct ()
virtual ~multi_funct ()
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.

Member Function Documentation

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

Compute a function y of nv variables stored in x with parameter pa.

Compute a function y of nv variables stored in x with parameter pa.

Reimplemented in multi_funct_fptr, multi_funct_gsl, multi_funct_fptr_noerr, multi_funct_mfptr, and multi_funct_mfptr_noerr.

Definition at line 52 of file multi_funct.h.

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 in multi_funct_fptr, multi_funct_gsl, multi_funct_fptr_noerr, multi_funct_mfptr, and multi_funct_mfptr_noerr.

Definition at line 67 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