Re: [Numpy-discussion] Fancy indexing for

2009-09-22 Thread Daran Rife
Hi Robert, This solution works beautifully! Thanks for sending it along. I need to learn and understand more about fancy indexing for multi-dimensional arrays, especially your clever trick of np.newaxis for broadcasting. Daran -- > Hello list, > > This didn't seem to get through last time roun

Re: [Numpy-discussion] Fancy indexing for

2009-09-22 Thread Robert Kern
On Tue, Sep 22, 2009 at 12:16, Daran Rife wrote: > Hello list, > > This didn't seem to get through last time round, and my > first version was poorly written. > > I have a rather pedestrian question about fancy indexing > for multi-dimensional arrays. > > Suppose I have two 3-D arrays, one named "

[Numpy-discussion] Fancy indexing for

2009-09-22 Thread Daran Rife
Hello list, This didn't seem to get through last time round, and my first version was poorly written. I have a rather pedestrian question about fancy indexing for multi-dimensional arrays. Suppose I have two 3-D arrays, one named "A" and the other "B", where both arrays have identical dimensions