Skip to content
Snippets Groups Projects
Commit f685788e authored by Klaus Reuter's avatar Klaus Reuter
Browse files

simplify

parent db9edc6e
No related branches found
No related tags found
Loading
Pipeline #138139 passed
......@@ -11,13 +11,5 @@ test_python_numpy:
before_script:
- pip install numpy==1.22.4
script:
- |
python <<EOF
import numpy as np
n = 32
A = np.random.rand(n,n)
B = np.linalg.inv(A)
C = A @ B
assert(np.allclose(C.diagonal(), np.ones(n)))
EOF
- python test_numpy.py
import numpy as np
n = 32
A = np.random.rand(n,n)
B = np.linalg.inv(A)
C = A @ B
assert(np.allclose(C.diagonal(), np.ones(n)))
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment