[Numpy-discussion] alternative mechanism for initializing an array

Phillip M. Feldman pfeldman at verizon.net
Thu Jul 16 14:43:55 EDT 2009


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.




More information about the NumPy-Discussion mailing list