gradient_array Class Template Reference

#include <multi_min.h>

Inheritance diagram for gradient_array:

grad_vfunct simple_grad_array simple_grad_array< param_t, multi_vfunct< param_t, nv >, nv >

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.

Definition at line 319 of file multi_min.h.


Public Member Functions

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