TooN 2.1
Public Member Functions | Public Attributes
LineSearch< Size, Precision, Func > Struct Template Reference

Turn a multidimensional function in to a 1D function by specifying a point and direction. More...

#include <conjugate_gradient.h>

List of all members.

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 > & start
const Vector< Size, Precision > & direction
const Func & f

Detailed Description

template<int Size, typename Precision, typename Func>
struct TooN::Internal::LineSearch< Size, Precision, Func >

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} \]


Constructor & Destructor Documentation

LineSearch ( const Vector< Size, Precision > &  s,
const Vector< Size, Precision > &  d,
const Func &  func 
)

Set up the line search class.

Parameters:
sStart point, $\Vec{s}$.
ddirection, $\Vec{d}$.
funcFunction, $f(\cdotp)$.

Member Function Documentation

Precision operator() ( Precision  x) const