[Numpy-discussion] Vector/matrix with 3200975422129 elements

Dan Halbert halbert at halwitz.org
Tue May 3 21:39:41 EDT 2011

On 5/3/2011 9:34 PM, Dan Halbert wrote:
> On 5/3/2011 7:52 PM, Gaston Fiore wrote:
>> I'm trying to create a vector (or a matrix, could be either) with
>> 3200975422129 elements but I'm not being successful
> In words, that's about 3.2 trillion float32's, so about 24 trillion
> bytes,>  2^41. So, yes, you are running out of memory, by a factor of
> several thousand, and I don't think you have 24T of swap space on your
> disk. So perhaps you need to rethink the problem. Maybe this matrix is
> sparse? (I hope so.)
My mistake, only about 12 trillion.

More information about the NumPy-Discussion mailing list