summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorAntony Lee <anntzer.lee@gmail.com>2015-12-05 20:46:09 -0800
committerAntony Lee <anntzer.lee@gmail.com>2016-01-16 20:24:25 -0800
commit5be93a2580a232705e897984d0f920bc6346990e (patch)
tree2f464cc5e9d461b81c5da6b8bfdc4191ea7f253e /doc
parent865c3e375a598e5a0f7d9e690eda4702de8658af (diff)
downloadnumpy-5be93a2580a232705e897984d0f920bc6346990e.tar.gz
MAINT: memcpy-based ~4x faster, typed shuffle.
Only for 1d-ndarrays exactly, as subtypes (e.g. masked arrays) may not allow direct shuffle of the underlying buffer (in fact, the old implementation destroyed the underlying values of masked arrays while shuffling). Also handles struct-containing-object 1d ndarrays properly. See #6776 for an earlier, less general (but even faster: ~6x) improvement attempt, #5514 for the original issue.
Diffstat (limited to 'doc')
-rw-r--r--doc/release/1.11.0-notes.rst4
1 files changed, 4 insertions, 0 deletions
diff --git a/doc/release/1.11.0-notes.rst b/doc/release/1.11.0-notes.rst
index 770938b60..e541a4739 100644
--- a/doc/release/1.11.0-notes.rst
+++ b/doc/release/1.11.0-notes.rst
@@ -204,6 +204,10 @@ extended to ``@``, ``numpy.dot``, ``numpy.inner``, and ``numpy.matmul``.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
This matches the behavior of ``assert_raises``.
+Speed improvement for np.random.shuffle
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+``np.random.shuffle`` is now much faster for 1d ndarrays.
+
Changes
=======
Pyrex support was removed from ``numpy.distutils``. The method