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

Home » Public Forums » archive » Move data to structure fields without copying
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Move data to structure fields without copying [message #79465] Sun, 04 March 2012 05:35
Wout De Nolf is currently offline  Wout De Nolf
Messages: 194
Registered: October 2008
Senior Member
IDL gurus,

Is there a way of getting an array in a structure without copying it?

data=fltarr(89,1192,1192)
struct={data:temporary(data),...}

Using temporary doesn't seem to work in this instance on a 32-bit
machine (not enough memory). I also want to avoid using pointers

data=fltarr(89,1192,1192)
struct={data:ptr_new(temporary(data)),...}

This does work, but I will need to adapt all further use of the
structure (god forbid) and it doesn't seem worth the effort because
one day, I will have an array that can't be allocated on 32bit at all.
Any suggestions?

Cheers,
Wout
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: Surface fitting in IDL
Next Topic: Love Your Web Page, Man!

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

Current Time: Wed Oct 08 13:47:20 PDT 2025

Total time taken to generate the page: 0.06953 seconds