[Matrix-SIG] bug with extended slices vs. object arrays?
Warren B. Focke
Warren B. Focke" <warren@pfiesteria.gsfc.nasa.gov
Tue, 17 Nov 1998 19:14:04 -0500 (EST)
I am having trouble assigning to extended slices of object arrays using
strides > 1 on Linux/Intel:
-pfiesteria:~> python
-Python 1.5.1 (#1, Aug 8 1998, 13:33:40) [GCC egcs-2.90.29 980515 (egc on linux2
-Copyright 1991-1995 Stichting Mathematisch Centrum, Amsterdam
->>> import Numeric
->>> Numeric.__version__
-'1.5'
->>> a=Numeric.zeros((4,),'O')
->>> a
-array([0 , 0 , 0 , 0 ],'O')
->>> a[::2]=2
-Segmentation fault
and:
->>> a=Numeric.zeros((2,2),"O")
->>> a
-array([[0 , 0 ],
- [0 , 0 ]],'O')
->>> a[:,1]=1
-Segmentation fault
but:
->>> a[1:3]=1
->>> a
-array([0 , 1 , 1 , 0 ],'O')
This happens with python 1.5(.1)? with NumPy 1.[01245] on various
combinations of (486|pentium|PII) running kernel 2.0.3[0246] and libc
[56], python and NumPy compiled with gcc2.7.2.x or egcs, with or without
optimization.
It does not happen on a sparc10 running 1.5.1, 1.0, and 4.1.4 or
a 21064 running 1.5, 1.0, and 4.0.
Warren Focke