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

Home » Public Forums » archive » Re: elegant array index expansion using INTERPOLATE
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: elegant array index expansion using INTERPOLATE [message #58040] Fri, 11 January 2008 14:32 Go to previous message
Bob[3] is currently offline  Bob[3]
Messages: 60
Registered: December 2006
Member
On Jan 11, 5:07 pm, "Ryan." <rchug...@brutus.uwaterloo.ca> wrote:
>   > Isn't array[expidxrange] just array[3:6] or
>
>> array[idxrange[0]:idxrange[1]] ?
>> ...or are you after the explicit list of expidxrange?
>
> Hi Bob,
>
> 'expidxrange' is just a 2-element array.  I find the indices using
> another method and throw them into a 2-element array.  I ultimately need
> to extract the explicit list of elements from 'array'.
>
> Ryan.

Looked to me like expidxrange was the 4 element array [3,4,5,6] in
your example and
idxrange was the 2 element array giving the endpoints of expidxrange.

Anyway, using the ':' notation on your array should get you your list
of elements without having to calculate an explicit list of indexes
(since you want all indexes between the endpoints).

Bob.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: combinatorial annealing
Next Topic: image on map

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

Current Time: Fri Oct 10 03:52:37 PDT 2025

Total time taken to generate the page: 0.50090 seconds