gradient Class Template Reference

#include <multi_min.h>

Inheritance diagram for gradient:

grad_funct simple_grad

Detailed Description

template<class param_t, class func_t, class vec_t = ovector_view>
class gradient< param_t, func_t, vec_t >

Class for automatically computing gradients [abstract base].

Definition at line 136 of file multi_min.h.


Public Member Functions

virtual int set_function (func_t &f)
 Set the function to compute the gradient of.
virtual int operator() (size_t nv, vec_t &x, vec_t &g, param_t &pa)=0
 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