On 6/19/2007 1:28 PM, Stefan van der Walt wrote: > > x = N.arange(100).reshape((10,10)) > x[:,N.arange(5)].shape > > should be (5, 10), while in reality it is (10, 5).
>>> y = numpy.arange(100).reshape((10,10)) >>> y[:,numpy.arange(5)].shape (10,5) >>> x = numpy.arange(100).reshape((1,10,10)) >>> x[0,:,numpy.arange(5)].shape (5,10) hm... Sturla Molden _______________________________________________ Numpy-discussion mailing list Numpy-discussion@scipy.org http://projects.scipy.org/mailman/listinfo/numpy-discussion