TooN: LineSearch< Size, Precision, Func > Struct Template Reference

TooN 2.0.0-beta8

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes
- Files

- Class List
- Class Hierarchy
- Class Members

Public Member Functions | Public Attributes
LineSearch< Size, Precision, Func > Struct Template Reference
Function optimization

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:

## Constructor & Destructor Documentation

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

Set up the line search class.

Parameters:

  s | Start point, .
  d | direction, .
  func | Function, .

## Member Function Documentation

Precision operator() | ( | Precision | x | ) | const

Parameters:

  x | Position to evaluate function

Returns:

References LineSearch< Size, Precision, Func >::direction, LineSearch< Size, Precision, Func >::f, and LineSearch< Size, Precision, Func >::start.