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

Home » Public Forums » archive » Re: Variable stride in array indices and other enhancements
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: Variable stride in array indices and other enhancements [message #15447 is a reply to message #15428] Wed, 19 May 1999 00:00 Go to previous message
Jack Saba is currently offline  Jack Saba
Messages: 30
Registered: January 1996
Member
I agree. The format that worked is not only REALLY ugly, it's unwieldy.
It's also more difficult than necessary to figure out the correct syntax
for any individual case.

Given the post by Richard French noting IDL 5.3 is due out in October,
maybe it's time to send RSI a wish list. Here are a few items I've
thought of:



"Kenneth P. Bowman" wrote:
>
> In article <ySg03.87161$A6.43176220@news1.teleport.com>, "DBorland"
> <dborland@egi.com> wrote:
>
>> IDL> a[(a[*,2*LINDGEN(3)])[2*LINDGEN(3),*]] = -1
>>
>> When you do this, the values from above are set to -1
>> IDL> print,a
>> -1 1 -1 3 -1 5
>> 6 7 8 9 10 11
>> -1 13 -1 15 -1 17
>> 18 19 20 21 22 23
>> -1 25 -1 27 -1 29
>> 30 31 32 33 34 35
>
> This only works because the original array was created with LINDGEN. It
> won't work in the general case.
>
> I still like
>
> a[0:*:2,0:*:2] = -1
>
> for aesthetic reasons alone.
>
> Ken
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: IDL and MPI
Next Topic: Re: behavior of arrays

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

Current Time: Sat Oct 11 03:38:05 PDT 2025

Total time taken to generate the page: 0.56517 seconds