diff options
author | Pauli Virtanen <pav@iki.fi> | 2018-02-12 01:57:33 +0100 |
---|---|---|
committer | Pauli Virtanen <pav@iki.fi> | 2018-02-12 22:18:26 +0100 |
commit | 76f0eafbaba73815710612bddf4bf6eef682965d (patch) | |
tree | ad5623f4b9b282c4e044debda04ef9cb383fc098 /numpy/core/arrayprint.py | |
parent | d1c66d0bb940025df384fca761f670112afe21af (diff) | |
download | numpy-76f0eafbaba73815710612bddf4bf6eef682965d.tar.gz |
BUG: linalg: fix corner-case behavior of cond() + use SVD if possible
Make np.linalg.cond(A, p) always use SVD for p=+-2 and not only p=None.
Ensure inf is returned instead of nan when the condition number diverges
for +/-2 norm.
Ignore errors when inverting matrices for p = +-1, 'fro', +-inf, so that
spurious LinAlgErrors are not raised. In those cases, report
non-invertible matrices as having cond=inf.
Add additional tests for cond().
Diffstat (limited to 'numpy/core/arrayprint.py')
0 files changed, 0 insertions, 0 deletions