[Numpy-discussion] Maximum available dimensions in numpy

Francesc Altet faltet at carabos.com
Mon Jan 16 03:38:06 CST 2006


I've downloaded a fresh SVN version of numpy ( and got a bit
surprised becuase of this:

>>> numpy.reshape(numpy.array((22,)), (1,)*20)
>>> 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.


>0,0<   Francesc Altet     http://www.carabos.com/
V   V   Cárabos Coop. V.   Enjoy Data

More information about the Numpy-discussion mailing list