Public Member Functions | Protected Attributes | Private Member Functions | List of all members
o2scl::gradient< func_t, vec_t > Class Template Referenceabstract

Class for automatically computing gradients [abstract base]. More...

#include <mmin.h>

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

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)=0
 Compute the gradient g at the point x.
 

Protected Attributes

func_t * func
 A pointer to the user-specified function.
 

Private Member Functions

 gradient (const gradient &)
 
gradientoperator= (const gradient &)
 

Detailed Description

template<class func_t, class vec_t = boost::numeric::ublas::vector<double>>
class o2scl::gradient< func_t, vec_t >

Default template arguments

Idea for Future:
Consider making an exact_grad class for computing exact gradients.

Definition at line 54 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).