[Numpy-discussion] How to tell whether I am using 32 bit or 64 bit numpy?

John Reid j.reid@mail.cryst.bbk.ac...
Sat Mar 28 06:01:12 CDT 2009

I imagine I'm using 64 bit numpy as I made a vanilla install from recent 
source on a 64 bit box but how can I tell for sure? I have some problems 
creating large arrays.

In [29]: a=numpy.empty((1024, 1024, 1024), dtype=int8)
works just fine

In [30]: a=numpy.empty((1024, 1024, 2048), dtype=int8)
gives me the dimensions too large error:
ValueError: dimensions too large.

In [31]: a=numpy.empty((1024, 1024, 2047), dtype=int8)
gives me a memory error:

How can I create these large arrays? Do I need to make sure I have a 64 
bit python? How do I do that?

Thanks in advance,

More information about the Numpy-discussion mailing list