diff options
| author | Aaron Meurer <asmeurer@gmail.com> | 2021-05-10 15:35:40 -0600 |
|---|---|---|
| committer | Aaron Meurer <asmeurer@gmail.com> | 2021-05-10 15:35:40 -0600 |
| commit | 4817784c6e1050034faabb1b3d04382fe8997b41 (patch) | |
| tree | 73408c89c1beedfed99211ee43ae50a7f47b5aed /numpy/_array_api | |
| parent | 533d0468f12e89b1b4b299f0344a31378853b012 (diff) | |
| download | numpy-4817784c6e1050034faabb1b3d04382fe8997b41.tar.gz | |
Make the array API constants Python floats
Diffstat (limited to 'numpy/_array_api')
| -rw-r--r-- | numpy/_array_api/_constants.py | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/numpy/_array_api/_constants.py b/numpy/_array_api/_constants.py index 5fde34625..9541941e7 100644 --- a/numpy/_array_api/_constants.py +++ b/numpy/_array_api/_constants.py @@ -1,9 +1,6 @@ -from ._array_object import ndarray -from ._dtypes import float64 - import numpy as np -e = ndarray._new(np.array(np.e, dtype=float64)) -inf = ndarray._new(np.array(np.inf, dtype=float64)) -nan = ndarray._new(np.array(np.nan, dtype=float64)) -pi = ndarray._new(np.array(np.pi, dtype=float64)) +e = np.e +inf = np.inf +nan = np.nan +pi = np.pi |
