We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 27b467c commit 0cd8d78Copy full SHA for 0cd8d78
.github/workflows/test.yml
@@ -28,5 +28,3 @@ jobs:
28
pip install numpy pytest threadpoolctl
29
- name: Run array test
30
run: pytest
31
- env:
32
- OPENBLAS_CORETYPE: NEOVERSEV1
test/python/test_array.py
@@ -6,15 +6,13 @@
6
#
7
# Licensed under the MIT License
8
9
-from pathlib import Path
10
-
11
import numpy as np
12
13
14
def test_array() -> None:
15
np.show_runtime()
16
- test_array_path = Path(__file__).parent / "test_array.npy"
17
- test_array = np.load(test_array_path)
18
- norm = np.linalg.norm(test_array)
+ a = np.arange(20000) / 50000
+ b = a + 1j * np.roll(np.flip(a), 12345)
+ norm = np.linalg.norm(b)
19
print(f"norm = {norm}")
20
- assert np.isclose(norm, 1.0)
+ assert np.isclose(norm, 46.18628948075393)
0 commit comments