[Numpy-discussion] alternative mechanism for initializing an array

Phillip M. Feldman pfeldman@verizon....
Thu Jul 16 13:43:55 CDT 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