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

Charles R Harris charlesr.harris at gmail.com
Thu Sep 5 14:58:26 EDT 2013

On Thu, Sep 5, 2013 at 12:50 PM, Fernando Perez <fperez.net at gmail.com>wrote:

> 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.
Better open an issue. It looks like a bug in the indexing code.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/numpy-discussion/attachments/20130905/8c0c0d87/attachment.html>

More information about the NumPy-Discussion mailing list