Re: [Numpy-discussion] Fancy indexing oddity

2013-07-03 Thread Sebastian Berg
On Tue, 2013-07-02 at 20:44 -0700, Bradley M. Froehle wrote: > A colleague just showed me this indexing behavior and I was at a loss > to explain what was going on. Can anybody else chime in and help me > understand this indexing behavior? > > >>> import numpy as np > >>> np.__version__ >

[Numpy-discussion] Fancy indexing oddity

2013-07-02 Thread Bradley M. Froehle
A colleague just showed me this indexing behavior and I was at a loss to explain what was going on. Can anybody else chime in and help me understand this indexing behavior? >>> import numpy as np >>> np.__version__ '1.7.1' >>> A = np.ones((2,3,5)) >>> mask = np.array([True]*4