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: Nicholas Jankowski
Subject: Re: out of memory or dimension too large for Octave's index type
Date: Wed, 26 Oct 2022 12:12:33 -0400

(Sorry, accidentally forgot to cc the help list)

On Wed, Oct 26, 2022, 12:11 Nicholas Jankowski <jankowski.nicholas@gmail.com> wrote:


On Wed, Oct 26, 2022, 12:02 Jiang, Yanda [E CPE] <yandaj@iastate.edu> wrote:
Yes, I tried this method and it got resolved.
Btw, may I check another issue, Nick?

Which method? There were two proposed which is why I asked again.


If the sentence below gave me the previous error message, does that mean the problem is not caused by index type, but out of memory? Kindly let me know your thoughts.


debug> size(Bf(:, noref))
ans =

   84450   67518

debug> size(Bbus(noslack, noref))
ans =

   67518   67518

Assuming Bf and Bbus are themselves not sparse arrays, then yes, it appears to be an out of memory problem. If they are 8 byte data types, then 

Bf = 84450 x 67518 =5.7e elements x 8 bytes = 46.5e9 bytes = 42.5GB

Bbus = 67518 x 67518 = 4.5e9 elements x 8 bytes = 36.5e9bytes = 34GB 





reply via email to

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