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

retry educational example, fix3

parent 5cc358e4
No related branches found
No related tags found
No related merge requests found
Pipeline #138137 failed
......@@ -13,11 +13,11 @@ test_python_numpy:
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
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