Error message abt memory
Jordi Gutiérrez Hermoso
jordigh at gmail.com
Wed Jun 11 21:07:18 CDT 2008
On 11/06/2008, asha g <dend_15 at yahoo.com> wrote:
> I get the following error message when I tried to increase my no. of iterations to 55*10^6:
>
> error: memory exhausted or requested size too large for range of Octave's index type -- trying to return to prompt
Well. It looks like you just requested Octave to allocate about 420
megabytes of memory. That fits in my machine, where I have 4 gigs and
lots of leg room, but maybe not on yours.
One fix may be to not allocate that much memory. If you have a
for-loop, as I imagine you are, you may find it better to transform it
into an equivalent while loop. As I understand it, for 1 = 1:55*10^6
actually creates a vector of that size.
On the other hand, if you actually are using a vector of 420 megabytes
for vectorisation routines, I think the only fix is to get a computer
with more memory.
HTH,
- Jordi G. H.
More information about the Help-octave
mailing list