parameters: (func, p, xi, tol=1e-3)
return_statement: return squeeze(fret), p + xi, xi
docstring: Line-search algorithm using fminbound.
  
      Find the minimium of the function ``func(x0+ alpha*direc)``.
docstring_summary: Line-search algorithm using fminbound.
docstring_tokens: Line - search algorithm using fminbound .
function: def _linesearch_powell(func, p, xi, tol=1e-3):
      """Line-search algorithm using fminbound.
  
      Find the minimium of the function ``func(x0+ alpha*direc)``.
  
      """
      def myfunc(alpha):
          return func(p + alpha*xi)
      alpha_min, fret, iter, num = brent(myfunc, full_output=1, tol=tol)
      xi = alpha_min*xi
      return squeeze(fret), p + xi, xi
function_tokens: def _linesearch_powell ( func , p , xi , tol = 1e-3 ) : def myfunc ( alpha ) : return func ( p + alpha * xi ) alpha_min , fret , iter , num = brent ( myfunc , full_output = 1 , tol = tol ) xi = alpha_min * xi return squeeze ( fret ) , p + xi , xi