Re: out of memory or dimension too large for Octave's index type

"Jiang, Yanda [E CPE]" <[email protected]> Thu, 27 Oct 2022 15:52:46 +0000
Newsgroups gmane.comp.gnu.octave.general
Message-ID <BYAPR04MB528875A3989C8CC1F4CD13E2C6339@BYAPR04MB5288.namprd04.prod.outlook.com>
I see. Thanks, Markus.
________________________________
From: Markus Mützel <[email protected]>
Sent: Thursday, October 27, 2022 1:21 AM
To: Jiang, Yanda [E CPE] <[email protected]>
Cc: [email protected] <[email protected]>
Subject: Re: out of memory or dimension too large for Octave's index type

Am 27. Oktober 2022 um 01:17 Uhr schrieb "Jiang, Yanda [E CPE]":
> Hi Markus,
>
> Is this a 32bit or 64bit version? It looks like a 64bit version, but why is its intmax only 2^31?
>

Octave uses some linear algebra libraries that are written in Fortran. By default, integers are 32-bit wide in Fortran also for 64-bit targets. That means some operations are limited to arrays that can be indexed with 32-bit integers.

Having written that, it *is* possible to compile those Fortran libraries with a (non-default) integer size of 64 bits.

From the screenshot you posted, I gather you are on Windows. There is an installer with a version of Octave where those Fortran libraries are using the larger (non-default) Fortran integer size.
Unfortunately, most of Octave's infrastructure is currently down due to an unexpected server outage. But you should still be able to find that installer on GNU's FTP server:
https://ftp.gnu.org/gnu/octave/windows/

The version you could try is "octave-7.2.0-w64-64-installer.exe".

I hope that helps.
Markus


----------
We are transitioning to a web based forum
for community help discussions at
https://octave.discourse.group/c/help