>>> import numpy as np
>>> x = np.ones((3,0))
>>> x
array([], shape(3,0), dtype=float64)

To preempt, I'm not really concerned with the answer to:  Why would
anyone want to do this?

I just want to know what is happening.  Especially, with

>>> x[0,:] = 5

(which works).  It seems that nothing is really happening here...given
that, why is it allowed? Ie, are there reasons for not requiring the
shape dimensions to be greater than 0?
_______________________________________________
Numpy-discussion mailing list
Numpy-discussion@scipy.org
http://projects.scipy.org/mailman/listinfo/numpy-discussion

Reply via email to