[Numpy-discussion] Bug or feature ?

Jean-Luc Menut jeanluc.menut at free.fr
Mon Jan 24 07:20:18 EST 2005


Hello,

> numarray and Numeric, consciously,  don't work that way.  So, no,  you
> can't expect that.

> rank-0 yes,  silent truncation no.


I'm sorry, I don't understand very well what is a silent truncation.

When I write :
>> a = array([[1, 2],[3, 4]])
>> >>> a[0,0]=1.1

I cannot expect to have a = array([[1.1, 2],[3, 4]]) ?

How can I solve this problem ? is it possible to force an array to be an
array of float ?

Thanks,

Jean-Luc





More information about the NumPy-Discussion mailing list