Public Member Functions | Public Attributes | List of all members
o2scl::gradient_gsl< func_t, vec_t > Class Template Reference

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

#include <mmin.h>

Inheritance diagram for o2scl::gradient_gsl< func_t, vec_t >:
o2scl::gradient< func_t, vec_t >

Public Member Functions

virtual int operator() (size_t nv, vec_t &x, vec_t &g)
 Compute the gradient g at the point x.
- Public Member Functions inherited from o2scl::gradient< func_t, vec_t >
virtual int set_function (func_t &f)
 Set the function to compute the gradient of.

Public Attributes

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

Additional Inherited Members

- Protected Attributes inherited from o2scl::gradient< func_t, vec_t >
func_t * func
 A pointer to the user-specified function.

Detailed Description

template<class func_t, class vec_t>
class o2scl::gradient_gsl< func_t, vec_t >

Definition at line 96 of file mmin.h.

The documentation for this class was generated from the following file:

Documentation generated with Doxygen. Provided under the GNU Free Documentation License (see License Information).