comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Unable to allocate memory: to make an array. Not enough space
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: Unable to allocate memory: to make an array. Not enough space [message #91775 is a reply to message #91772] Tue, 25 August 2015 07:02 Go to previous message
Jeremy Bailin is currently offline  Jeremy Bailin
Messages: 618
Registered: April 2008
Senior Member
On Tuesday, August 25, 2015 at 3:48:03 AM UTC-5, g.na...@gmail.com wrote:
> Thanks a lot Jeremy. Your explanation makes perfect sense.
>
> Well, the other arrays enclosed in the FOR loops are 3D that's way I wanted to do it like that.
>
> Is there is another way more efficient?

It depends on what kind of processing you're doing inside those for loops. Generally, if you can find a way of doing an operation on the full array instead of using a for loop, it will run faster (that's especially true if you are looping a large number of times -- here you only have 10 iterations, so it's not such a big deal), but it completely depends on the type of operations you are doing. Also, if you are running into memory constraints (like you are), then that might prevent you from operating on the whole array at once and you might need to operate on individual slices, like you are.

Cheers,
-Jeremy.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Plot and Legend problem
Next Topic: Mean = NaN if NaN present

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Thu Oct 09 19:59:55 PDT 2025

Total time taken to generate the page: 0.95638 seconds