simple_grad_array Class Template Reference

Simple automatic computation of gradient by finite differencing with arrays. More...

#include <multi_min.h>

Inheritance diagram for simple_grad_array:

gradient_array grad_vfunct

Detailed Description

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

Simple automatic computation of gradient by finite differencing with arrays.

Definition at line 475 of file multi_min.h.


Public Member Functions

virtual int operator() (size_t nvar, double x[nv], double g[nv], param_t &pa)
 Compute the gradient g at the point x.

Data Fields

double epsrel
 The relative stepsize for finite-differencing (default $ 10^{-4} $ ).
double epsmin
 The minimum stepsize (default $ 10^{-15} $).

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