Hi all,
I have encountered the following strangeness :
>>> from numpy import *
>>> __version__
'1.5.1'
>>> a = eye(2, dtype='int')
>>> a *= 1.0
>>> a ; a.dtype
array([[1, 0],
[0, 1]])
dtype('int64')
>>> a = a * 1.0
>>> a ; a.dtype
array([[ 1., 0.],
[ 0., 1.]])
dtype('float64')So, in this case "a *= x" is not equivalent to "a = a*x" ? François
_______________________________________________ NumPy-Discussion mailing list [email protected] http://mail.scipy.org/mailman/listinfo/numpy-discussion
