[Numpy-discussion] Maximum available dimensions in numpy

Paul Barrett pebarrett at gmail.com
Mon Jan 16 14:52:02 CST 2006


On 1/16/06, Sasha <ndarray at mac.com> wrote:
>
> > Before, I think numpy supported up to 32 dimensions. Is there any reason
> > for this new limit? Just curious.
>
> It was actually 40 until recently. I don't know the answer to your
> question (Travis?), but I am curious why would anyone need more than
> say 4?  Solving PDEs by finite differences method in more than 4
> dimensional spaces, anyone? I know I sound like some very well known
> person, but really 20 "ought to be enough for everyone" (TM) :-).
>

How about setting the default case to 3 or 4 dimensions and then special
casing the rare higher dimensional arrays, i.e. using malloc for these
situations.  The default dimension size could be a compile time option for
those who routinely exceed the default size of 3 or 4.

 -- Paul

--
Paul Barrett, PhD                     Johns Hopkins University
Assoc. Research Scientist     Dept of Physics and Astronomy
Phone: 410-516-5190            Baltimore, MD 21218
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://projects.scipy.org/pipermail/numpy-discussion/attachments/20060116/7350cf18/attachment.html 


More information about the Numpy-discussion mailing list