next up previous contents index
Next: Function linmin_fast Up: Module minimization_module Previous: Subroutine n_linmin   Contents   Index

Function linmin


\begin{boxedminipage}{\textwidth}
\begin{verbatim}l = linmin(x0,xdir,y,epsilon, &
func)\end{verbatim}
\end{boxedminipage}

Smart line minimiser, adapted from Numerical Recipes. The objective function is func.

x0 -- real(dp), dimension(:)

Starting position

xdir -- real(dp), dimension(:)

Direction of gradient at x0

y -- real(dp), dimension(:)

Finishing position returned in y after linmin

epsilon -- real(dp)

Initial step size

Function func(x) -- real(dp)

x -- real(dp), dimension(:)

Return value -- integer

linmin_fast function

gabor 2009-06-30