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

Home » Public Forums » archive » ARRAY OF ARRAYS
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: Array of arrays [message #47713 is a reply to message #12759] Thu, 23 February 2006 06:31 Go to previous messageGo to previous message
Fritz is currently offline  Fritz
Messages: 7
Registered: February 2006
Junior Member
Thanks.
What happens if I save the array T ?

> save, filename='Tarray.sav', T

Does the content of T is saved ? I mean do the three arrays inside T are
saved ?
Does the restore command
> restore, 'Tarray.sav'
brings back the initial information ?

Francois.


"David Fanning" <davidf@dfanning.com> wrote in message
news:MPG.1e668c7ae40db807989b9f@news.frii.com...
> Fritz writes:
>
>> How do I define an array of arrays ?
>>
>> Suppose T is an array of 3 elements.
>> And I want T[0] = intarr(2,5,4), T[1] = intarr(6,5,4) and T[2] =
>> intarr(7,8,4).
>>
>> How do I declare T ?
>
> As a pointer array. :-)
>
> t = PtrArr(3)
> t[0] = Ptr_New(intarr(2,5,4))
> t[1] = Ptr_New(intarr(6,5,4))
> t[3] = Ptr_New(intarr(7,8,4))
>
> (*t[1])[0,*,2] = Indgen(5)+3
>
> Cheers,
>
> David
> --
> David Fanning, Ph.D.
> Fanning Software Consulting, Inc.
> Coyote's Guide to IDL Programming: http://www.dfanning.com/
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: iVolume isosurface placement
Next Topic: Re: flux-conserving image resampling?

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

Current Time: Wed Oct 15 16:20:24 PDT 2025

Total time taken to generate the page: 0.24282 seconds