@@ -198,15 +198,21 @@ returns an appropriate infinity.
198
198
199
199
Specialized ``np.isnan ``, ``np.isinf ``, and ``np.isfinite `` ufuncs for bool and int types
200
200
-----------------------------------------------------------------------------------------
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.
204
204
205
205
New keywords added to ``np.nan_to_num ``
206
206
---------------------------------------
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.
210
216
211
217
212
218
Changes
0 commit comments