[Numpy-discussion] A bug in numpy.random.shuffle?

Fernando Perez fperez.net at gmail.com
Thu Sep 5 14:50:42 EDT 2013

On Thu, Sep 5, 2013 at 11:43 AM, Charles R Harris
<charlesr.harris at gmail.com> wrote:

> Oh, nice one ;) Should be fixable if you want to submit a patch.

Strategy? One option is to do, for structured arrays, a shuffle of the
indices and then an in-place

arr = arr[shuffled_indices]

But there may be a cleaner/faster way to do it.

I'm happy to submit a patch, but I'm not familiar enough with the
internals to know what the best approach should be.



More information about the NumPy-Discussion mailing list