|
From: Francesc A. <fa...@ca...> - 2006-01-27 11:30:49
|
Hi, I don't know if the next behaviour in NumPy is intended or not: In [22]: (numpy.zeros((2,1), dtype=3D"int8")*3.).dtype.type Out[22]: <type 'float32_arrtype'> while numarray and Numeric gives: In [36]: (numarray.zeros((2,1), type=3D"Int8")*3.).type() Out[36]: Float64 In [37]: (Numeric.zeros((2,1), typecode=3D"b")*3.).typecode() Out[37]: 'd' Would not be float64 a more sensible default for numpy as well? Cheers, =2D-=20 >0,0< Francesc Altet =A0 =A0 http://www.carabos.com/ V V C=E1rabos Coop. V. =A0=A0Enjoy Data "-" |