[Numpy-discussion] Indexing bug?

Ivan Oseledets ivan.oseledets at gmail.com
Sat Mar 30 14:01:38 EDT 2013


I am using numpy 1.6.1,
and encountered a wierd fancy indexing bug:

import numpy as np
c = np.random.randn(10,200,10);

In [29]: print c[[0,1],:200,:2].shape
(2, 200, 2)

In [30]: print c[[0,1],:200,[0,1]].shape
(2, 200)

It means, that here fancy indexing is not working right for a 3d array.

Is this bug fixed with higher versions of numpy?
I do not check, since mine is from EPD and is compiled with MKL (and I
can consider recompiling myself only under strong circumstances)

Ivan



More information about the NumPy-Discussion mailing list