diff options
author | Yashasvi Misra <54177363+yashasvimisra2798@users.noreply.github.com> | 2021-08-06 12:43:18 +0530 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-08-06 10:13:18 +0300 |
commit | 887766071724d27431b453b8270f299213b2d189 (patch) | |
tree | f5fbc51e6fb69b799a111cca9354cf9943dcef25 /numpy/core/numeric.py | |
parent | cc7f1504aaf7b02de09ba87ee91dfe4446d90031 (diff) | |
download | numpy-887766071724d27431b453b8270f299213b2d189.tar.gz |
DOC: update isclose and allclose notes works with bools (#19613)
Diffstat (limited to 'numpy/core/numeric.py')
-rw-r--r-- | numpy/core/numeric.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/numpy/core/numeric.py b/numpy/core/numeric.py index 813063adb..d8a0cf9a6 100644 --- a/numpy/core/numeric.py +++ b/numpy/core/numeric.py @@ -2226,6 +2226,7 @@ def allclose(a, b, rtol=1.e-5, atol=1.e-8, equal_nan=False): `equal` but not `array_equal`. `allclose` is not defined for non-numeric data types. + `bool` is considered a numeric data-type for this purpose. Examples -------- @@ -2307,6 +2308,7 @@ def isclose(a, b, rtol=1.e-5, atol=1.e-8, equal_nan=False): for `atol` will result in `False` if either `a` or `b` is zero. `isclose` is not defined for non-numeric data types. + `bool` is considered a numeric data-type for this purpose. Examples -------- |