gradient_array Class Template Reference

Base class for automatically computing gradients with arrays [abstract base]. More...

#include <multi_min.h>

Inheritance diagram for gradient_array:

grad_vfunct simple_grad_array

Detailed Description

template<class param_t, class func_t, size_t nv>
class gradient_array< param_t, func_t, nv >

Base class for automatically computing gradients with arrays [abstract base].

Definition at line 444 of file multi_min.h.


Public Member Functions

virtual int set_function (func_t &f)
 Set the function to compute the gradient of.
virtual int operator() (size_t nvar, double x[nv], double g[nv], param_t &pa)=0
 Compute the gradient g at the point x.

Protected Attributes

func_t * func
 A pointer to the user-specified function.

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