TooN
|
Turn a multidimensional function in to a 1D function by specifying a point and direction. More...
#include <conjugate_gradient.h>
Public Member Functions | |
LineSearch (const Vector< Size, Precision > &s, const Vector< Size, Precision > &d, const Func &func) | |
Set up the line search class. More... | |
Precision | operator() (Precision x) const |
Public Attributes | |
const Vector< Size, Precision > & | start |
\(\Vec{s}\) | |
const Vector< Size, Precision > & | direction |
\(\Vec{d}\) | |
const Func & | f |
\(f(\cdotp)\) | |
Turn a multidimensional function in to a 1D function by specifying a point and direction.
A nre function is defined:
\[ g(a) = \Vec{s} + a \Vec{d} \]
|
inline |
Set up the line search class.
s | Start point, \(\Vec{s}\). |
d | direction, \(\Vec{d}\). |
func | Function, \(f(\cdotp)\). |
|
inline |
x | Position to evaluate function |