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

Home » Public Forums » archive » Re: IDL, arrays, and memory
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: IDL, arrays, and memory [message #33901 is a reply to message #33898] Tue, 04 February 2003 08:54 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Sean Raffuse (sean@me.wustl.edu) writes:

> I would like to create a jagged array. My array is something like:
>
> array = intarr(3600, 1600, 240 or less)
>
> Do I save space by creating a jagged array where the 3rd dimension is of
> variable size? Is that even possible? Should I just stick with
> 3600x1600x240?

What language are you thinking of doing this in, Sean? :-)

As a general rule, it is better to get all the memory you
need at once, then trim. This avoids memory fragmentation
problems, etc.

But "jagged arrays". I'd like to see this when you are
finished. :-)

Cheers,

David

--
David W. Fanning, Ph.D.
Fanning Software Consulting, Inc.
Phone: 970-221-0438, E-mail: david@dfanning.com
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Toll-Free IDL Book Orders: 1-888-461-0155
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Expert information needed
Next Topic: OPENW and environment variables in IDL 5.5

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

Current Time: Wed Oct 08 16:51:49 PDT 2025

Total time taken to generate the page: 0.00374 seconds