#include <conjugate_gradient.h>
Public Member Functions | |
LineSearch (const Vector< Size, Precision > &s, const Vector< Size, Precision > &d, const Func &func) | |
Precision | operator() (Precision x) const |
Public Attributes | |
const Vector< Size, Precision > & | direction |
| |
const Func & | f |
| |
const Vector< Size, Precision > & | start |
|
Turn a multidimensional function in to a 1D function by specifying a point and direction. A nre function is defined:
Definition at line 11 of file conjugate_gradient.h.
TooN::Internal::LineSearch< Size, Precision, Func >::LineSearch | ( | const Vector< Size, Precision > & | s, | |
const Vector< Size, Precision > & | d, | |||
const Func & | func | |||
) | [inline] |
Set up the line search class.
s | Start point, . | |
d | direction, . | |
func | Function, . |
Definition at line 12 of file conjugate_gradient.h.
Precision TooN::Internal::LineSearch< Size, Precision, Func >::operator() | ( | Precision | x | ) | const [inline] |
x | Position to evaluate function |
Definition at line 18 of file conjugate_gradient.h.
const Vector<Size, Precision>& TooN::Internal::LineSearch< Size, Precision, Func >::direction |
Definition at line 4 of file conjugate_gradient.h.
const Func& TooN::Internal::LineSearch< Size, Precision, Func >::f |
Definition at line 6 of file conjugate_gradient.h.
const Vector<Size, Precision>& TooN::Internal::LineSearch< Size, Precision, Func >::start |
Definition at line 3 of file conjugate_gradient.h.