[SciPy-user] changing the default data type of zeros and ones

Alan G Isaac aisaac@american....
Thu Oct 11 10:33:28 CDT 2007


On Thu, 11 Oct 2007, Ryan Krauss apparently wrote:
> I understand the computer science arguments for zeros and 
> ones returning integers by default, but is this something 
> we are willing to consider changing? 

It was changed some time ago.

Cheers,
Alan Isaac

>>> import numpy
>>> numpy.__version__
'1.0.3.1'
>>> numpy.zeros(10)
array([ 0.,  0.,  0.,  0.,  0.,  0.,  0.,  0.,  0.,  0.])
>>> numpy.zeros(10).dtype
dtype('float64')
>>>





More information about the SciPy-user mailing list