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

Home » Public Forums » archive » Strange memory problem
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: Strange memory problem [message #18419 is a reply to message #18337] Wed, 22 December 1999 00:00 Go to previous messageGo to previous message
Peter Mason is currently offline  Peter Mason
Messages: 145
Registered: June 1996
Senior Member
rkj@dukebar.crml.uab.edu (R. Kyle Justice) wrote:
<...>
> Actually I should have given my real problem rather than a
> simplified version of it. Acutally I have two big arrays of
> equal size and I am trying to copy one into the other:
>
> temp1(*)=temp2
<...>

The best way I know of to do this sort of thing (in IDL) is to use
array-insertion starting offsets.
e.g., If you have 2-dimensional arrays and you want to copy one on top
of another, do: TEMP1(0,0)=TEMP2.
This is much, *much* more efficient than using '*'. It also converts
what it copies to the datatype of TEMP1 if necessary.
This issue goes back a long way, so I'd expect the "solution" to work
on PV-Wave as well.

Cheers
Peter Mason


Sent via Deja.com http://www.deja.com/
Before you buy.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: how to find the TLB of a widget
Next Topic: Tip: how to mix object gui with command line

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

Current Time: Wed Oct 08 19:20:31 PDT 2025

Total time taken to generate the page: 0.00468 seconds