[Numpy-discussion] zeros() default type in Numeric3

Stephen Walton stephen.walton at csun.edu
Mon Mar 28 09:39:29 CST 2005


konrad.hinsen at laposte.net wrote:

> My main argument is a different one: consistency.
>
> I see zeros() as an array constructor, a shorthand for calling 
> array()  with an explicit list argument.

Ah, but array(10*[0]) returns an integer array, and array(10*[0.]) 
returns a double.  Which should zeros() be equivalent to?





More information about the Numpy-discussion mailing list