May 10, 2013
11:36 p.m.
np.array ((0,0)) Out[10]: array([0, 0]) <<< ok, it's 2 dimensional In [11]: np.array ((0,0)).shape Out[11]: (2,) <<< except, it isn't
11:42 p.m.
Hi Neal, On Fri, May 10, 2013 at 7:36 PM, Neal Becker <ndbecker2@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
4846
Age (days ago)
4846
Last active (days ago)
2 comments
2 participants
participants (2)
-
Nathaniel Smith -
Neal Becker