Object-oriented Scientific Computing Library: Version 0.910
Public Member Functions | Protected Attributes
gradient< func_t, vec_t > Class Template Reference

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

#include <multi_min.h>

Inheritance diagram for gradient< func_t, vec_t >:
grad_funct< vec_t > simple_grad< func_t, vec_t >

Detailed Description

template<class func_t, class vec_t = ovector_base>
class gradient< func_t, vec_t >

Default template arguments

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

Definition at line 368 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)=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:
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

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

Get Object-oriented Scientific Computing
Lib at SourceForge.net. Fast, secure and Free Open Source software
downloads.