scipy/scipy — pull request #177 by dlaxalde (2012-03-05 17:56:35+00:00)
Title: ENH: Jacobian memoization for multivariate minimization

- The second commit fixes the current situation in which the objective function is evaluated twice when it also returns the jacobian in TNC and L-BFGS-B. See this [discussion](https://github.com/scipy/scipy/commit/2570a3b685fdc45e0bc5d00f27e71ba78993efad#commitcomment-1021489).
- The last one introduces support for this behavior (i.e. `fun(x, *args) -> f, fprime`) in `minimize` thus making it available for all solvers.

I'm quite new to these *memoization* techniques so any comment very welcome.