pantry/projects/numpy.org/test.py
Andrew eab75c3bf6
+numpy.org (#4526)
* new file:   projects/numpy.org/package.yml
	new file:   projects/numpy.org/test.f90
	new file:   projects/numpy.org/test.py

* remove PYTHONPATH from test
2023-12-21 15:39:14 -05:00

4 lines
94 B
Python

import numpy as np
t = np.ones((3,3), int)
assert t.sum() == 9
assert np.dot(t, t).sum() == 27