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

Home » Public Forums » archive » Re: Absurd Indexes
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: Absurd Indexes [message #9349] Fri, 20 June 1997 00:00 Go to previous message
peter is currently offline  peter
Messages: 80
Registered: February 1994
Member
George McCabe (george.mccabe@gsfc.nasa.gov) wrote:
: R. Bauer wrote:
: >
: > b=(a(2,*))(10)

: Wow that's cool! But I'm not sure quite how to interpret the syntax.

: why do the numbers in the second pair of parenthesis refer only to the
: second dimension of the array?

They don't; they treat the array in the preceeding parentheses as a 1-D
array. Since it has dimension 1 in its first dimension, the second
subscript effective ignores it.

Peter

P.S. This kind of subscripting is very useful, esp. in expressions like
xsize = (size(variable))(1). It's not immediately obvious that it
is legal, but in fact it is.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: IDL UNIX->PC code compatability
Next Topic: Smooth scrolling zoom in draw widget; how?

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

Current Time: Wed Oct 08 15:31:47 PDT 2025

Total time taken to generate the page: 0.00433 seconds