BUG: optimize.fmin_ncg failed to converge occasionally on Windows due to (==0.0) comparison. Fixes #1150.
BUG: optimize.fmin_ncg failed to converge occasionally on Windows due to (==0.0) comparison. Fixes #1150.

(cherry-picked from r6587).

git-svn-id: 003f22d385e25de9cff933a5ea4efd77cb5e7b28@6597 d6536bca-fef9-0310-8506-e4c0a848fbcf

scipy/scipy-svn,jasonmccampbell/scipy-refactor,lesserwhirls/scipy-cwt,scipy/scipy-svn,scipy/scipy-svn,lesserwhirls/scipy-cwt,lesserwhirls/scipy-cwt,jasonmccampbell/scipy-refactor,jasonmccampbell/scipy-refactor,scipy/scipy-svn,lesserwhirls/scipy-cwt,jasonmccampbell/scipy-refactor