[Numpy-discussion] Logical indexing and higher-dimensional arrays.

Sturla Molden sturla@molden...
Tue Feb 7 12:24:22 CST 2012


On 07.02.2012 19:17, Benjamin Root wrote:

>  >>> print x.shape
> (2, 3, 4)
>  >>> print x[0, :, :].shape
> (3, 4)
>  >>> print x[0, :, idx].shape
> (2, 3)

That looks like a bug to me. The length of the first dimension should be 
the same.

Sturla






More information about the NumPy-Discussion mailing list