Generic Python-exception-derived object raised by linalg functions. 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 functi
| 112 | |
| 113 | @set_module('numpy.linalg') |
| 114 | class LinAlgError(ValueError): |
| 115 | """ |
| 116 | Generic Python-exception-derived object raised by linalg functions. |
| 117 | |
| 118 | General purpose exception class, derived from Python's ValueError |
| 119 | class, programmatically raised in linalg functions when a Linear |
| 120 | Algebra-related condition would prevent further correct execution of the |
| 121 | function. |
| 122 | |
| 123 | Parameters |
| 124 | ---------- |
| 125 | None |
| 126 | |
| 127 | Examples |
| 128 | -------- |
| 129 | >>> from numpy import linalg as LA |
| 130 | >>> LA.inv(np.zeros((2,2))) |
| 131 | Traceback (most recent call last): |
| 132 | File "<stdin>", line 1, in <module> |
| 133 | File "...linalg.py", line 350, |
| 134 | in inv return wrap(solve(a, identity(a.shape[0], dtype=a.dtype))) |
| 135 | File "...linalg.py", line 249, |
| 136 | in solve |
| 137 | raise LinAlgError('Singular matrix') |
| 138 | numpy.linalg.LinAlgError: Singular matrix |
| 139 | |
| 140 | """ |
| 141 | |
| 142 | |
| 143 | def _raise_linalgerror_singular(err, flag): |
no outgoing calls
no test coverage detected
searching dependent graphs…