diff options
author | Simon Conseil <contact@saimon.org> | 2015-12-02 10:19:08 +0100 |
---|---|---|
committer | Simon Conseil <contact@saimon.org> | 2015-12-02 10:22:43 +0100 |
commit | f752d84206bece604bbb8cb1c78b1f3a6af468f8 (patch) | |
tree | ee434e4868e1c8a22b8f50828e36c3afb6fafa72 | |
parent | b3a8994a2a3c89c00ac4a95e01cd0888b72fd9af (diff) | |
download | numpy-f752d84206bece604bbb8cb1c78b1f3a6af468f8.tar.gz |
DOC: Add changelog for #6734 and #6748.
-rw-r--r-- | doc/release/1.11.0-notes.rst | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/doc/release/1.11.0-notes.rst b/doc/release/1.11.0-notes.rst index 580c0c952..e60062c81 100644 --- a/doc/release/1.11.0-notes.rst +++ b/doc/release/1.11.0-notes.rst @@ -36,7 +36,7 @@ DeprecationWarning to error * Non-integers used as index values raise TypeError, e.g., in reshape, take, and specifying reduce axis. -FutureWarning to changed behavior +FutureWarning to changed behavior ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * In ``np.lib.split`` an empty array in the result always had dimension @@ -89,6 +89,13 @@ The function now internally calls the generic ``npy_amergesort`` when the type does not implement a merge-sort kind of ``argsort`` method. +Memory and speed improvements for masked arrays +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +Creating a masked array with ``mask=True`` (resp. ``mask=False``) now uses +``np.ones`` (resp. ``np.zeros``) to create the mask, which is faster and avoid +a big memory peak. Another optimization was done to avoid a memory peak and +useless computations when printing a masked array. + Changes ======= |