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

Home » Public Forums » archive » Undocumented array indexing feature?
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: Undocumented array indexing feature? [message #14168 is a reply to message #14114] Tue, 26 January 1999 00:00 Go to previous message
R.Bauer is currently offline  R.Bauer
Messages: 1424
Registered: November 1998
Senior Member
wbiagiot@suffolk.lib.ny.us wrote:

> In article <36AC8341.EC8@rosa.mpin-koeln.mpg.de>,
> Alex Schuster <alex@rosa.mpin-koeln.mpg.de> wrote:
>> wrb1000@my-dejanews.com wrote:
>>
>>> This is veering offtopic, but I'd just like to add my two cents.
>>> IDL, like C, has many constructs that may add placed on a line to
>>> condense the actual length of the program. However, just like C, the
>>> readablity and understanding factors tend to drop. I intend to use the
>>> a=(b=(c=1)) example. I always wondered how to initialize multiple variables
>>> on the same IDL line.
>>
>> Now that's an easy one:
>>
>> IDL> a=1 & b=2 & c=3 & d=4 &
>>
>> Voila, one line :-)
>>
>> Alex
>
> Oh, I knew that one, Alex. Anyone know which method offers faster execution -
>
> a = 0 & b = 0 * OR * a = (b = 0)
>
> this is important when applying the same principle to large arrays. At least
> to those of us with slower PCs :(

Initializing of big arrays should be done by a=make_array(200,100000,/nozero)
This is the fastest method

R.Bauer
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: how do i read compressed tiff files?
Next Topic: IDL Library Browser

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

Current Time: Wed Oct 08 17:37:58 PDT 2025

Total time taken to generate the page: 0.14448 seconds