[Numpy-discussion] Numeric.identify(4) failure

Randall Hopper viznut at charter.net
Wed Feb 15 11:43:03 EST 2006


Here on 64-bit Linux, I get strange Python errors with some Numeric functions
(see below).  Has this been fixed in more recent versions of Numeric?  Currently
running python-numeric-23.7-3 which is what comes with SuSE 9.3.

Thanks,

Randall

Python 2.4 (#1, Mar 22 2005, 18:42:42)
[GCC 3.3.5 20050117 (prerelease) (SUSE Linux)] on linux2
Type "help", "copyright", "credits" or "license" for more information.

 import Numeric
 Numeric.identity(4)

Traceback (most recent call last):
  File "<stdin>", line 1, in ?
  File "/usr/lib64/python2.4/site-packages/Numeric/Numeric.py", line 604, in
identity
    return resize(array([1]+n*[0],typecode=typecode), (n,n))
  File "/usr/lib64/python2.4/site-packages/Numeric/Numeric.py", line 398, in resize
    return reshape(a, new_shape)
ValueError: total size of new array must be unchanged







More information about the NumPy-Discussion mailing list