[Numpy-discussion] alternative mechanism for initializing an array

David Warde-Farley dwf@cs.toronto....
Thu Jul 16 14:04:32 CDT 2009

On 16-Jul-09, at 2:43 PM, Phillip M. Feldman wrote:

> numpy.array understands
> V= array([[1,2,3,4],[4,3,2,1]])
> but not
> V= array([1,2,3,4],[4,3,2,1])
> It would be more convenient if it could handle either form.

That may be so, but the second argument is dtype. This would break that.


More information about the NumPy-Discussion mailing list