Created
May 26, 2021 11:14
-
-
Save thierry-FreeBSD/916b1315f3937244fd11853b4db35c55 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ python3.8 -c 'import numpy; numpy.linalg.test()' | |
NumPy version 1.20.3 | |
NumPy relaxed strides checking option: True | |
NumPy CPU features: SSE SSE2 SSE3 SSSE3* SSE41* POPCNT* SSE42* AVX* F16C* FMA3? AVX2? AVX512F? AVX512CD? AVX512_KNL? AVX512_SKX? AVX512_CLX? AVX512_CNL? AVX512_ICL? | |
s...............................................F.............................................................................................................................................................................................................. [ 83%] | |
.........................................x......... [100%] | |
============================================================================================================================== FAILURES =============================================================================================================================== | |
__________________________________________________________________________________________________________________________ TestCond.test_nan __________________________________________________________________________________________________________________________ | |
self = <numpy.linalg.tests.test_linalg.TestCond object at 0x834825130> | |
def test_nan(self): | |
# nans should be passed through, not converted to infs | |
ps = [None, 1, -1, 2, -2, 'fro'] | |
p_pos = [None, 1, 2, 'fro'] | |
A = np.ones((2, 2)) | |
A[0,1] = np.nan | |
for p in ps: | |
> c = linalg.cond(A, p) | |
A = array([[ 1., nan], | |
[ 1., 1.]]) | |
p = None | |
p_pos = [None, 1, 2, 'fro'] | |
ps = [None, 1, -1, 2, -2, 'fro'] | |
self = <numpy.linalg.tests.test_linalg.TestCond object at 0x834825130> | |
/usr/local/lib/python3.8/site-packages/numpy/linalg/tests/test_linalg.py:777: | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
<__array_function__ internals>:5: in cond | |
??? | |
/usr/local/lib/python3.8/site-packages/numpy/linalg/linalg.py:1765: in cond | |
s = svd(x, compute_uv=False) | |
<__array_function__ internals>:5: in svd | |
??? | |
/usr/local/lib/python3.8/site-packages/numpy/linalg/linalg.py:1672: in svd | |
s = gufunc(a, signature=signature, extobj=extobj) | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
err = 'invalid value', flag = 8 | |
def _raise_linalgerror_svd_nonconvergence(err, flag): | |
> raise LinAlgError("SVD did not converge") | |
E numpy.linalg.LinAlgError: SVD did not converge | |
err = 'invalid value' | |
flag = 8 | |
/usr/local/lib/python3.8/site-packages/numpy/linalg/linalg.py:97: LinAlgError | |
1 failed, 303 passed, 1 skipped, 28 deselected, 1 xfailed in 5.88 seconds |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment