#include <vnl_conjugate_gradient.h>
Inheritance diagram for vnl_conjugate_gradient:


Public Methods | |
| vnl_conjugate_gradient (vnl_cost_function &f) | |
| vnl_conjugate_gradient (vnl_cost_function &f, vnl_vector< double > &x) | |
| void | init (vnl_cost_function &f) |
| ~vnl_conjugate_gradient () | |
| void | diagnose_outcome (vcl_ostream &) const |
| void | diagnose_outcome () const |
| bool | minimize (vnl_vector< double > &x) |
Static Protected Methods | |
| double | valuecomputer_ (double *x) |
| int | gradientcomputer_ (double *g, double *x) |
| int | valueandgradientcomputer_ (double *v, double *g, double *x) |
| int | preconditioner_ (double *out, double *in) |
Protected Attributes | |
| vnl_cost_function * | f_ |
| double | final_step_size_ |
Friends | |
| class | vnl_conjugate_gradient_Activate |
Definition at line 28 of file vnl_conjugate_gradient.h.
|
|
Initialize with the function object that is to be minimized. Definition at line 34 of file vnl_conjugate_gradient.h. |
|
||||||||||||
|
Initialize as above, and then run minimization. Definition at line 38 of file vnl_conjugate_gradient.h. References f_, final_step_size_, and vnl_conjugate_gradient_Activate. |
|
|
Destructor. |
|
|
|
|
|
|
|
||||||||||||
|
|
|
|
Initialize all variables. Referenced by vnl_conjugate_gradient(). |
|
|
Minimize the function supplied in the constructor until convergence. or failure. On return, x is such that f(x) is the lowest value achieved. Returns true for convergence, false for failure. Referenced by vnl_conjugate_gradient(). |
|
||||||||||||
|
|
|
||||||||||||||||
|
|
|
|
|
|
|
Definition at line 72 of file vnl_conjugate_gradient.h. Referenced by vnl_conjugate_gradient(). |
|
|
Definition at line 67 of file vnl_conjugate_gradient.h. Referenced by vnl_conjugate_gradient(). |
|
|
Definition at line 68 of file vnl_conjugate_gradient.h. Referenced by vnl_conjugate_gradient(). |
1.2.15 written by Dimitri van Heesch,
© 1997-2000