[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Maximum Variable Size in Octave
From: |
John W. Eaton |
Subject: |
Re: Maximum Variable Size in Octave |
Date: |
Thu, 04 Sep 2008 14:26:44 -0400 |
On 4-Sep-2008, Tal Rusak wrote:
| I am just wondering how you were able to use a 10 GB array if the I/O
| components of Octave are only 32-bit systems. Wouldn't that cap the
| array size at 2 GB? Did you modify any I/O code?
You don't have to read 10GB to generate a variable that requires 10GB
of storage. For example, I think
tengb = 10*1024*1024*1024;
x(tengb/8) = 1;
x = ones (tengb/8, 1);
x = zeros (tengb/8, 1);
x = rand (tengb/8, 1);
x = 1:tengb</8;
etc., should do it.
jwe