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 #47724 is a reply to message #12759] Wed, 22 February 2006 13:58 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
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: Fri Oct 10 19:24:58 PDT 2025

Total time taken to generate the page: 1.03985 seconds