[Numpy-discussion] problems with duplicating and slicing an array

Alan G Isaac aisaac at american.edu
Thu Jan 27 07:41:01 CST 2005


On Fri, 21 Jan 2005, Travis Oliphant apparently wrote:
> from scipy import *
> alter_numeric()
> i = array([0,2])
> x = array([1.1,2.2,3.3,4.4])
> y = x[i]

This ^ gives me an invalid index error.
scipy version 0.3.0_266.4242

Alan Isaac







More information about the Numpy-discussion mailing list