Simple automatic computation of gradient by finite differencing. More...
#include <mmin.h>
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 ) | |
| double | epsmin |
The minimum stepsize (default ) | |
Additional Inherited Members | |
Protected Attributes inherited from o2scl::gradient< func_t, vec_t > | |
| func_t * | func |
| A pointer to the user-specified function. | |
Documentation generated with Doxygen. Provided under the
GNU Free Documentation License (see License Information).