Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

11
  • 6
    np.zeros([1] * 263) Commented Oct 31, 2017 at 13:21
  • 1
    Also note that you run into ValueError if your array has more than 32 dimensions. Commented Oct 31, 2017 at 13:27
  • 1
    By default, NumPy arrays can have at most 32 dimensions. Commented Oct 31, 2017 at 13:28
  • 3
    Do you actually mean a 263-dimensional array? Or a 1-dimensional array of size 263? Commented Oct 31, 2017 at 13:32
  • 5
    Why do you want that? Most dimensions would have to have size 1, otherwise memory usage would explode. And what good is a dimension of size 1? Commented Oct 31, 2017 at 13:33