On 4/5/2011 5:49 AM, François Steinmetz wrote:
>  >>> a = eye(2, dtype='int')
>  >>> a *= 1.0
>  >>> a ; a.dtype
> array([[1, 0],
>         [0, 1]])
> dtype('int64')


This in-place (!) multiplication should not change
the dtype of a.  I suspect you did not exactly cut
and paste...

Alan Isaac

_______________________________________________
NumPy-Discussion mailing list
[email protected]
http://mail.scipy.org/mailman/listinfo/numpy-discussion

Reply via email to