[Numpy-discussion] Cutting 1.0.2 release

Alan G Isaac aisaac at american.edu
Tue Jan 30 10:04:44 CST 2007


On Tue, 30 Jan 2007, Gary Ruben apparently wrote: 
> One question, which may be an issue: Should ones, zeros 
> and empty be generating arrays of floats by default now? 

>>> import numpy as n
>>> z = n.zeros((2,2))
>>> z.dtype
dtype('float64')
>>> o = n.ones((2,2))
>>> o.dtype
dtype('float64')
>>> e = n.empty((2,2))
>>> e.dtype
dtype('float64')
>>> n.__version__
'1.0'

hth,
Alan Isaac






More information about the Numpy-discussion mailing list