[Numpy-discussion] Maximum available dimensions in numpy
Francesc Altet
faltet at carabos.com
Mon Jan 16 03:38:06 CST 2006
Hi,
I've downloaded a fresh SVN version of numpy (0.9.4.1914) and got a bit
surprised becuase of this:
>>> numpy.reshape(numpy.array((22,)), (1,)*20)
array([[[[[[[[[[[[[[[[[[[[22]]]]]]]]]]]]]]]]]]]])
>>> numpy.reshape(numpy.array((22,)), (1,)*21)
Traceback (most recent call last):
File "<stdin>", line 1, in ?
File "/usr/lib/python2.3/site-packages/numpy/core/oldnumeric.py", line
164, in reshape
return asarray(a).reshape(newshape)
ValueError: sequence too large; must be smaller than 20
Before, I think numpy supported up to 32 dimensions. Is there any reason
for this new limit? Just curious.
Cheers,
--
>0,0< Francesc Altet http://www.carabos.com/
V V Cárabos Coop. V. Enjoy Data
"-"
More information about the Numpy-discussion
mailing list