Re: out of memory or dimension too large for Octave's index type
"Jiang, Yanda [E CPE]" <[email protected]> Wed, 26 Oct 2022 23:17:46 +0000
| Newsgroups | gmane.comp.gnu.octave.general |
|---|---|
| Message-ID | <BYAPR04MB5288918611C5B9BC5F064104C6309@BYAPR04MB5288.namprd04.prod.outlook.com> |
Hi Markus, Is this a 32bit or 64bit version? It looks like a 64bit version, but why is its intmax only 2^31? [cid:1db88ad6-bb16-4fa7-8526-3301709cfc89] Best, Yanda ________________________________ From: Markus Mützel <[email protected]> Sent: Wednesday, October 26, 2022 2:14 PM 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 26. Oktober 2022 um 17:03 Uhr schrieb "Jiang, Yanda [E CPE]": > > H(:, noslack) = sparse(Bf(:, noref)) / sparse(Bbus(noslack, noref)); > > > still gave me the error message as following: > > debug> H(:, noslack) = sparse(Bf(:, noref)) / sparse(Bbus(noslack, noref)); > error: out of memory or dimension too large for Octave's index type > error: called from > makePTDF at line 76 column 15 > > > Does that mean the problem is not related to index type? I don't know which exact problem you'd like to solve. But sometimes it helps to re-formulate the problem and use the backslash operator `\` instead of the slash operator `/`. See also: `doc mldivide` Markus ---------- We are transitioning to a web based forum for community help discussions at https://octave.discourse.group/c/help
image.png
(image/png, 3.1 KB) - not displayed