Skip to content

Commit 22e6aa4

Browse files
committed
DOC: add release note
1 parent 539fa48 commit 22e6aa4

File tree

1 file changed

+12
-6
lines changed

1 file changed

+12
-6
lines changed

doc/release/1.17.0-notes.rst

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -198,15 +198,21 @@ returns an appropriate infinity.
198198

199199
Specialized ``np.isnan``, ``np.isinf``, and ``np.isfinite`` ufuncs for bool and int types
200200
-----------------------------------------------------------------------------------------
201-
The boolean and integer types are incapable of storing ``np.nan`` and ``np.inf`` values,
202-
which allows us to provide specialized ufuncs that are up to 250x faster than the current
203-
approach.
201+
The boolean and integer types are incapable of storing ``np.nan`` and
202+
``np.inf`` values, which allows us to provide specialized ufuncs that are up to
203+
250x faster than the current approach.
204204

205205
New keywords added to ``np.nan_to_num``
206206
---------------------------------------
207-
``np.nan_to_num`` now accepts keywords ``nan``, ``posinf`` and ``neginf`` allowing the
208-
user to define the value to replace the ``nan``, positive and negative ``np.inf`` values
209-
respectively.
207+
``np.nan_to_num`` now accepts keywords ``nan``, ``posinf`` and ``neginf``
208+
allowing the user to define the value to replace the ``nan``, positive and
209+
negative ``np.inf`` values respectively.
210+
211+
MemoryErrors caused by allocated overly large arrays are more descriptive
212+
-------------------------------------------------------------------------
213+
Often the cause of a MemoryError is incorrect broadcasting, which results in a
214+
very large and incorrect shape. The message of the error now includes this
215+
shape to help diagnose the cause of failure.
210216

211217

212218
Changes

0 commit comments

Comments
 (0)