[Numpy-discussion] Bug or feature ?

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


> 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 ?



More information about the Numpy-discussion mailing list