question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Increase maximum number of array dimensions?

See original GitHub issue

At my lab, we’re working with arrays with very many dimensions. We’ve run up against the hardcoded limit of 32 dimensions for np.arrays. What is the rationale for this limit, and is it possible to increase it? Thanks!

Issue Analytics

  • State:open
  • Created 8 years ago
  • Reactions:4
  • Comments:18 (11 by maintainers)

github_iconTop GitHub Comments

2reactions
eric-wiesercommented, May 22, 2020

Each dimension in my results array is linked to a particular input parameter (whether that is a single value or a range of values).

Have you considered using xarray, which lets you name your dimensions, meaning you do not need to insert padding dimensions of length 1?

2reactions
charriscommented, May 1, 2020

I suspect that the original 32 came from 2*32 for 32 bit systems, so 64 might be the proper number for MAX_DIM these days, although actual memory address buses were about 48 bits last time I looked.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Is there a max array length limit in C++? - Stack Overflow
No, C++ does not impose any limits for the dimensions of an array. ... memory alignment (to increase performance, elements are placed at ......
Read more >
Maximum size of an array - general - CodeChef Discuss
can anyone tell me what is the maximum size of different types(bool,int,long long …etc ) of array (or vector) we can take in...
Read more >
Increase limit on Matrix size - MATLAB Answers - MathWorks
Hi,. Presently matlab has put a limit of 10k on max array dimension. Matlab is not allowing me to use more than that....
Read more >
How to increase the maximum array size allowed in Matlab?
Preferences>>Workspace>> Matlab array size limit (check box off.) Finally, right click on my computer>>properties>>Advance system setting>>Advanced ...
Read more >
Maximum length of Strictly Increasing Sub-array after ...
and the maximum length of its strictly increasing subarray is 4. Input: arr[] = {1, 2} Output: 2. The complete array is already...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found