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

retry educational example, fix2

parent 9954f34b
No related branches found
No related tags found
No related merge requests found
Pipeline #138136 failed
......@@ -11,12 +11,13 @@ test_python_numpy:
before_script:
- pip install numpy==1.22.4
script:
- >
python -c
"
import numpy as np
A = np.random.rand(32,32)
B = np.linalg.inv(A)
C = A @ B
assert(np.allclose(C.diagonal(), np.ones(32)))
"
- |
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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment