[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Error message abt memory
From: |
Jordi Gutiérrez Hermoso |
Subject: |
Re: Error message abt memory |
Date: |
Wed, 11 Jun 2008 21:07:18 -0500 |
On 11/06/2008, asha g <address@hidden> 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.