[Numpy-discussion] Why is the shape of a singleton array the empty tuple?

David Goldsmith d.l.goldsmith@gmail....
Sat Mar 6 23:15:09 CST 2010


>>> x = numpy.array(3)
>>> x
array(3)
>>> x.shape
()

My question is: why?

DG
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.scipy.org/pipermail/numpy-discussion/attachments/20100306/88ae2668/attachment.html 


More information about the NumPy-Discussion mailing list