[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: |
Yan Zhang |
Subject: |
RE: "out of memory or dimension too large for Octave's index type" |
Date: |
Tue, 16 Jan 2018 17:58:58 +0000 |
Hi Markus,
That's a really smart idea. Thank you!
Best Regards,
Yan
-----Original Message-----
From: Help-octave [mailto:address@hidden On Behalf Of mmuetzel
Sent: Tuesday, January 16, 2018 7:59 AM
To: address@hidden
Subject: RE: "out of memory or dimension too large for Octave's index type"
Hi Yan,
If you know the size of the matrices you need already at the start of your
program, you could try and "reserve" a continuous memory block for it. You
might be able to do something like:
function A = fragments_memory ()
A = zeros(5184,3904, typename);
... (the lines that fragment your memory)
A(:,:) = what_it_should_be;
endfunction
Best regards,
Markus
--
Sent from: http://octave.1599824.n4.nabble.com/Octave-General-f1599825.html
_______________________________________________
Help-octave mailing list
address@hidden
https://lists.gnu.org/mailman/listinfo/help-octave