[Numpy-discussion] 0-dim arrays inconsistency
Nathaniel Smith
njs at pobox.com
Fri May 10 19:42:57 EDT 2013
Hi Neal,
On Fri, May 10, 2013 at 7:36 PM, Neal Becker <ndbecker2 at gmail.com> wrote:
> np.array ((0,0))
> Out[10]: array([0, 0]) <<< ok, it's 2 dimensional
Think you may have confused yourself :-). It's 1 dimensional with 2 elements...
> In [11]: np.array ((0,0)).shape
> Out[11]: (2,) <<< except, it isn't
...as per above. (Not sure where the 0-dim part comes in.)
-n
More information about the NumPy-Discussion
mailing list