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

Home » Public Forums » archive » arithmetic operation on array
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: arithmetic operation on array [message #85519 is a reply to message #85480] Wed, 14 August 2013 12:24 Go to previous messageGo to previous message
John Correira is currently offline  John Correira
Messages: 25
Registered: August 2011
Junior Member
On 08/12/2013 06:51 PM, Phillip Miller wrote:
> As an aside, I see why using temporary(data) in example 3 is more
> memory efficient. Would it have been appropriate to use it in example
> 2 as well, e.g.
> for i=0, 999 do data[*,*,i] = temporary(data[*,*,i])-average
> or would I be losing the original array as soon as the temporary
> function kicks in during the first iteration of the for loop?
>

By subscripting the data array you are making a copy of it, so using
TEMPORARY won't help.

John
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Coyote Graphics PS/PDF output size/orientation
Next Topic: Not IDL Related Question

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

Current Time: Fri Oct 10 00:12:28 PDT 2025

Total time taken to generate the page: 0.24046 seconds