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

Markus Mützel <[email protected]> Wed, 26 Oct 2022 21:14:09 +0200
Newsgroups gmane.comp.gnu.octave.general
Message-ID <trinity-c0ca550e-9f16-4acf-a6ea-63cbb5ecab57-1666811649167@3c-app-gmx-bs37>
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