simple_grad Class Template Reference

#include <multi_min.h>

Inheritance diagram for simple_grad:

gradient grad_funct

Detailed Description

template<class param_t, class func_t, class vec_t>
class simple_grad< param_t, func_t, vec_t >

Simple automatic computation of gradient by finite differencing.

Definition at line 164 of file multi_min.h.


Public Member Functions

virtual int operator() (size_t nv, vec_t &x, vec_t &g, 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