From: Joris De R. <jo...@st...> - 2006-10-30 12:53:47
|
On Friday 27 October 2006 19:01, Francesc Altet wrote: [FA]: A Divendres 27 Octubre 2006 17:58, Joris De Ridder va escriure: [FA]: > Hi, [FA]: > [FA]: > Is the following behaviour of astype() intentional in NumPy 1.0? [FA]: > [FA]: > >>> x = array([1,2,3]) [FA]: > >>> x.astype(None) [FA]: > [FA]: > array([ 1., 2., 3.]) [FA]: > [FA]: > That is, the int32 is converted to float64. [FA]: [FA]: Yes, I think the behaviour is intended. This is because 'float64' is the [FA]: default type in NumPy from some months ago (before the default was 'int_') OK, updated the astype() example in the www.scipy.org/Numpy_Example_List . J. Disclaimer: http://www.kuleuven.be/cwis/email_disclaimer.htm |