LINMIN Purpose
A wrapper function used internally to linmin. Feeds a
multidimensional function to brent and bracket.
Inputs
lambda: Position along the line
Keyword Parameters
point: The starting point for the line
dir: A vector giving the direction of the line
linfunc: A user written function to minimize. Evaluated at(point +
lambda * dir)
_extra: Any extra keywords are passed to linfunc.
Outputs
linfunc(point + lambda * dir, _extra = extra)