AnimaL |
Tutorial |
Documentation |
#include <linmin.h>
The constructor performs the minimization.
Definition at line 15 of file linmin.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> | linmin (Vector &p, Vector &xi, unsigned int n, Real *fret, Func(*func), const 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. |
|
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 brent. Template Func must be similar with Real( Vector ) Definition at line 32 of file linmin.h. References nr::brent(), nr::linmin< TraitsT >::F1dim< Real, Vector, Func >::funct, nr::mnbrak(), nr::linmin< TraitsT >::F1dim< Real, Vector, Func >::ncom, nr::linmin< TraitsT >::F1dim< Real, Vector, Func >::pcom, nr::linmin< TraitsT >::F1dim< Real, Vector, Func >::xicom, and nr::linmin< TraitsT >::F1dim< Real, Vector, Func >::xt. |