LineSearch.__call__

LineSearch.__call__(self, x, direction, dir_derivative)[source]

Calculate step length in direction.

Parameters
xLinearSpaceElement

The current point

directionLinearSpaceElement

Search direction in which the line search should be computed

dir_derivativefloat

Directional derivative along the direction

Returns
stepfloat

Computed step length.