summaryrefslogtreecommitdiff
path: root/numpy/array_api
diff options
context:
space:
mode:
authorAaron Meurer <asmeurer@gmail.com>2021-08-12 15:34:45 -0600
committerAaron Meurer <asmeurer@gmail.com>2021-08-12 15:34:45 -0600
commit90537b5dac1d0c569baa794967b919ae4f6fdcca (patch)
treeaaa9864dfc828875750e7c24daf2cea539a5000f /numpy/array_api
parentd5956c170b07cf26b05c921d810dc387d7e819da (diff)
downloadnumpy-90537b5dac1d0c569baa794967b919ae4f6fdcca.tar.gz
Add smallest_normal to the array API finfo
This was blocked on #18536, which has been merged.
Diffstat (limited to 'numpy/array_api')
-rw-r--r--numpy/array_api/_data_type_functions.py8
1 files changed, 2 insertions, 6 deletions
diff --git a/numpy/array_api/_data_type_functions.py b/numpy/array_api/_data_type_functions.py
index e6121a8a4..fd92aa250 100644
--- a/numpy/array_api/_data_type_functions.py
+++ b/numpy/array_api/_data_type_functions.py
@@ -60,10 +60,7 @@ class finfo_object:
eps: float
max: float
min: float
- # Note: smallest_normal is part of the array API spec, but cannot be used
- # until https://github.com/numpy/numpy/pull/18536 is merged.
-
- # smallest_normal: float
+ smallest_normal: float
@dataclass
@@ -87,8 +84,7 @@ def finfo(type: Union[Dtype, Array], /) -> finfo_object:
float(fi.eps),
float(fi.max),
float(fi.min),
- # TODO: Uncomment this when #18536 is merged.
- # float(fi.smallest_normal),
+ float(fi.smallest_normal),
)