help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


From: Jiang, Yanda [E CPE]
Subject: Re: out of memory or dimension too large for Octave's index type
Date: Wed, 26 Oct 2022 23:17:46 +0000

Hi Markus,

Is this a 32bit or 64bit version? It looks like a 64bit version, but why is its intmax only 2^31?



Best,
Yanda

From: Markus Mützel <markus.muetzel@gmx.de>
Sent: Wednesday, October 26, 2022 2:14 PM
To: Jiang, Yanda [E CPE] <yandaj@iastate.edu>
Cc: help@octave.org <help@octave.org>
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


reply via email to

[Prev in Thread] Current Thread [Next in Thread]