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

Home » Public Forums » archive » Variable stride in array indices
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Variable stride in array indices [message #15249] Fri, 07 May 1999 00:00 Go to previous message
bowman is currently offline  bowman
Messages: 121
Registered: September 1991
Senior Member
We haven't had a good argument about IDL syntax lately, so I thought I
would ask why IDL does not allow variable stride in array indices. For
example, if

zz = z[0:5:2]

then zz would contain [z[0], z[2], z[4]].

I realize that this kind of thing can be done with array subscript lists
such as z[[0, 2, 4]], but this can be awkward for multidimensional
arrays. It is also necessary to *store* the lists of subscripts, and I
believe that implementation through indirect subscripts must be slower
than implementing strides through direct iteration (i.e., internal
compiled DO loops).

Any comments?

Ken Bowman
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: IDL Program Updates
Next Topic: divide by zero problems

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

Current Time: Wed Oct 08 17:23:33 PDT 2025

Total time taken to generate the page: 0.00430 seconds