AnimaL |
Tutorial |
Documentation |
#include <dlinmin.h>
The constructor performs the minimization.
Definition at line 13 of file dlinmin.h.
Public Types | |
typedef TraitsT | Traits |
Traits. | |
typedef Traits::Real | Real |
Floating point value. | |
typedef Traits::Vector | Vector |
Vector. | |
Public Member Functions | |
Constructor | |
template<class Func, class DFunc> | dlinmin (Vector &p, Vector &xi, unsigned int n, Real *fret, Func(*func), DFunc(*dfunc), Real TOL=2.0e-4) |
Given an n-dimensional point p[0..n-1] and an n-dimensional direction xi[0..n-1], moves and resets p to where the function takes on a minimum along the direction xi from p, and replaces xi by the actual vector displacement that p was moved. | |
Private Attributes | |
Vector | pcom |
auxiliary vector | |
Vector | xicom |
auxiliary vector | |
Vector | xt |
auxiliary vector | |
Vector | df |
auxiliary vector | |
unsigned int | n |
size of the vectors |
|
Floating point value.
|
|
Traits.
|
|
Vector.
|
|
Given an n-dimensional point p[0..n-1] and an n-dimensional direction xi[0..n-1], moves and resets p to where the function takes on a minimum along the direction xi from p, and replaces xi by the actual vector displacement that p was moved. Also returns as fret the value of the function at the returned location p. This is actually all accomplished by calling the routines mnbrak and dbrent. Template Func must be similar with Real( Vector ) Template DFunc must be similar with void( Vector location, Vector gradient ) Definition at line 32 of file dlinmin.h. References nr::dbrent(), and nr::mnbrak(). |
|
auxiliary vector
|
|
size of the vectors
|
|
auxiliary vector
|
|
auxiliary vector
|
|
auxiliary vector
|