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

Stephen Walton stephen.walton at csun.edu
Thu Jan 27 13:51:07 EST 2005


Alan G Isaac wrote:

>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
>  
>
Travis's example works for me at scipy 0.3.2_302.4549 (from CVS), 
Numeric 23.6, numarray 1.1.1, all on FC3.





More information about the NumPy-Discussion mailing list