diff options
author | Matti Picus <matti.picus@gmail.com> | 2023-01-25 07:07:17 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-25 07:07:17 +0200 |
commit | ddb19ab36b7de2519df7cb93e83a9a14fdb2b193 (patch) | |
tree | 28a94d9f908e437a1c559bac0327401effd9dbaf /numpy/linalg/linalg.py | |
parent | 4362da7c5e81ed1c96663381ffe8d552d226ef14 (diff) | |
parent | 5c7c696db3441ada1d66a26d907d39f2a5ae5049 (diff) | |
download | numpy-ddb19ab36b7de2519df7cb93e83a9a14fdb2b193.tar.gz |
Merge pull request #21888 from WillTirone/fix_scipy_1339
MAINT: changing the method of checking for nan / inf values linalg.eig
Diffstat (limited to 'numpy/linalg/linalg.py')
-rw-r--r-- | numpy/linalg/linalg.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/numpy/linalg/linalg.py b/numpy/linalg/linalg.py index 1b3f6e86a..92878228d 100644 --- a/numpy/linalg/linalg.py +++ b/numpy/linalg/linalg.py @@ -42,11 +42,11 @@ fortran_int = intc @set_module('numpy.linalg') -class LinAlgError(Exception): +class LinAlgError(ValueError): """ Generic Python-exception-derived object raised by linalg functions. - General purpose exception class, derived from Python's exception.Exception + General purpose exception class, derived from Python's ValueError class, programmatically raised in linalg functions when a Linear Algebra-related condition would prevent further correct execution of the function. |