|
Re: Array index for arrays [message #28409 is a reply to message #28337] |
Wed, 05 December 2001 08:16  |
Craig Markwardt
Messages: 1869 Registered: November 1996
|
Senior Member |
|
|
air_jlin@yahoo.com (Johnny Lin) writes:
> Craig Markwardt <craigmnet@cow.physics.wisc.edu> wrote in message
> news:<onr8qb6ok2.fsf@cow.physics.wisc.edu>...
>> [...]
>>
>> Yes, this has burned me a couple of times. The short answer is that
>> when you combine two or more "index lists", then they are treated as
>> one-for-one coordinate lists. What you want can be achieved in two
>> separate indexing steps:
>>
> but how come adding a third "*" dimension gives something you would
> expect?
The special behavior only shows up when all of the dimensions are
indexed by arrays. If even one dimension is indexed by a scalar
number or A:B index range, then you will get the "standard" behavior.
Craig
--
------------------------------------------------------------ --------------
Craig B. Markwardt, Ph.D. EMAIL: craigmnet@cow.physics.wisc.edu
Astrophysics, IDL, Finance, Derivatives | Remove "net" for better response
------------------------------------------------------------ --------------
|
|
|