scipy/scipy — pull request #127 by dlaxalde (2012-01-05 20:41:22+00:00)
Title: ENH: optimize/minimize: combine hess and hessp parameters

The Hessian parameter can have two forms (`hess` and `hessp`) but it's only used by the Newton-CG solver so having two distinct parameters somehow clutters up `minimize`'s signature. These parameters have been combined into a single `hess` parameter and the actual type of Hessian is checked internally.

Besides, I've added new tests that cover the use of these parameters and the first commit cleans up multiple numpy imports in tests.