[SciPy-user] uint8 bug (Scipy core 0.4.1)

Jon Peirce Jonathan.Peirce at nottingham.ac.uk
Tue Oct 18 08:45:52 CDT 2005


Scipy arrays with dtype=uint8 or int8 seem to be 
mathematically-challenged on my machine (AMD64 WinXP running python 
2.4.2, scipy core 0.4.1). Simple int (and various others) appear fine.

 >>>import scipy
 >>>xx=scipy.array([100,100,100],scipy.int8)
 >>>print xx.sum()
 44
 >>>xx=scipy.array([100,100,100],scipy.int)
 >>>print xx.sum()
 300

anybody know why?

-- 
Jon Peirce
Nottingham University
+44 (0)115 8467176 (tel)
+44 (0)115 9515324 (fax)

http://www.peirce.org.uk/


This message has been checked for viruses but the contents of an attachment
may still contain software viruses, which could damage your computer system:
you are advised to perform your own checks. Email communications with the
University of Nottingham may be monitored as permitted by UK legislation.



More information about the SciPy-user mailing list