summaryrefslogtreecommitdiff
path: root/numpy/core/arrayprint.py
diff options
context:
space:
mode:
authorPauli Virtanen <pav@iki.fi>2018-02-12 01:57:33 +0100
committerPauli Virtanen <pav@iki.fi>2018-02-12 22:18:26 +0100
commit76f0eafbaba73815710612bddf4bf6eef682965d (patch)
treead5623f4b9b282c4e044debda04ef9cb383fc098 /numpy/core/arrayprint.py
parentd1c66d0bb940025df384fca761f670112afe21af (diff)
downloadnumpy-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