Maximum Variable Size in Octave
John W. Eaton
jwe at bevo.che.wisc.edu
Thu Sep 4 13:26:44 CDT 2008
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
More information about the Help-octave
mailing list