summaryrefslogtreecommitdiff
path: root/numpy/array_api/_manipulation_functions.py
diff options
context:
space:
mode:
authorStephannie Jimenez Gacha <steff456@users.noreply.github.com>2021-07-19 14:01:40 -0500
committerGitHub <noreply@github.com>2021-07-19 14:01:40 -0500
commitd3382a5e7e3c45a2fc9840509de0c8eadc25fa07 (patch)
tree4756bb5ec04287c78642a1501bcd24297cbed3e5 /numpy/array_api/_manipulation_functions.py
parent1cc3f07ad3e0987da7d399dd8febf01ef3b48b45 (diff)
downloadnumpy-d3382a5e7e3c45a2fc9840509de0c8eadc25fa07.tar.gz
ENH: Add smallest_normal and smallest_subnormal attributes to finfo (#18536)
* ENH: Add smallest_normal and smallest_subnormal attributes to finfo class * ENH: Add smallest_normal and smallest_subnormal attributes to MachAr * BUG: Fix minor bug in the calc of smallest_subnormal attribute * ENH: Use nextafter to calculate smallest subnormal in finfo * ENH: Use nextafter for calculating all subnormal numbers * ENH: Add warning in case the subnormal number is zero and hardcode double double value * FIX: Fix docstring in new function * FIX: Add stacklevel parameter to warning * ENH: Move smallest_subnormal to a property and add a test * FIX: Only hardcode the subnormal value for double double * FIX: Fix subnormal warning test * FIX: Fix the hardcoded value for double double type * FIX: Fix failing test by supressing an overflow warning * ENH: Fix the value for smallest_normal and tiny in double double * BUG: Fix failing tests when tiny is NaN * BUG: Fix failing test when tiny is NaN * ENH: add review fixes * ENH: Raise TypeError for smallest_subnormal/tiny value in longdouble * FIX: Replace TypeError with warning * BUG: Fix tests * ENH: Add release note * ENH: Add review changes * BUG: Fix wrong value in smallest_subnormal Co-authored-by: Sebastian Berg <sebastian@sipsolutions.net> * BUG: Fix wrong value in subnormal number * ENH: Bind the smallest_normal warning to the finfo class * BUG: Revert warning supression in tests * ENH: Add review changes * BUG: Fix failing test * BUG: Fix test identation * BUG: Fix typo * Update numpy/core/tests/test_getlimits.py Co-authored-by: Sebastian Berg <sebastian@sipsolutions.net>
Diffstat (limited to 'numpy/array_api/_manipulation_functions.py')
0 files changed, 0 insertions, 0 deletions