summaryrefslogtreecommitdiff
path: root/doc/release
diff options
context:
space:
mode:
authorChristopher Whelan <topherwhelan@gmail.com>2019-02-25 23:13:38 -0800
committerChristopher Whelan <topherwhelan@gmail.com>2019-03-09 23:41:36 -0800
commit5785ca7bef5c0a44042f34c496bceeb79161cd8a (patch)
tree1fe38c726fa96d7993f2412be27d392fff0d42ce /doc/release
parentcbf3a081271a43e980e3c2f76625deb43fd53922 (diff)
downloadnumpy-5785ca7bef5c0a44042f34c496bceeb79161cd8a.tar.gz
ENH: Create boolean and integer ufuncs for isnan, isinf, and isfinite.
Previously, boolean values would be routed through the half implementations of these functions, which added considerable overhead. Creating specialized ufuncs improves performance by ~250x Additionally, enable autovectorization of new isnan, isinf, and isfinite ufuncs.
Diffstat (limited to 'doc/release')
-rw-r--r--doc/release/1.17.0-notes.rst6
1 files changed, 6 insertions, 0 deletions
diff --git a/doc/release/1.17.0-notes.rst b/doc/release/1.17.0-notes.rst
index cd547c2b4..3dcdf6660 100644
--- a/doc/release/1.17.0-notes.rst
+++ b/doc/release/1.17.0-notes.rst
@@ -163,6 +163,12 @@ thereby saving a level of indentation
In some cases where ``np.interp`` would previously return ``np.nan``, it now
returns an appropriate infinity.
+Specialized ``np.isnan``, ``np.isinf``, and ``np.isfinite`` ufuncs for bool and int types
+-----------------------------------------------------------------------------------------
+The boolean and integer types are incapable of storing ``np.nan`` and ``np.inf`` values,
+which allows us to provide specialized ufuncs that are up to 250x faster than the current
+approach.
+
Changes
=======