diff options
author | Eric Wieser <wieser.eric@gmail.com> | 2016-12-19 13:59:14 +0000 |
---|---|---|
committer | Eric Wieser <wieser.eric@gmail.com> | 2016-12-19 14:32:54 +0000 |
commit | b28ea1c57c9dba8feec7f616986f2e3e28dd6192 (patch) | |
tree | 9cf758da903e1a9ea1d4458173ac56ffc0226367 /numpy/lib/user_array.py | |
parent | 835653064fc35c08bf001ef9a09c3127d7ea0be7 (diff) | |
download | numpy-b28ea1c57c9dba8feec7f616986f2e3e28dd6192.tar.gz |
BUG: Raise LinAlgError from lstsq rather than a math domain error from math.log
We could make the log conditional on its argument being non-zero, but that entire expression is wrong anyway.
We could omit that calculation entirely and have LAPACK calculate it for us, but the routine in LAPACK is wrong anyway
We could upgrade the version of lapack shipped in lapack_lite, but the tool to do that is wrong anyway.
Let's leave that can of worms for another time, and just improve the error message for now.
Diffstat (limited to 'numpy/lib/user_array.py')
0 files changed, 0 insertions, 0 deletions