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

Home » Public Forums » archive » Re: Odd behaviour in array indexing ?
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: Odd behaviour in array indexing ? [message #34179] Fri, 21 February 2003 09:29 Go to previous message
Liam E. Gumley is currently offline  Liam E. Gumley
Messages: 378
Registered: January 2000
Senior Member
"mwvogel" <mvogel@rdiag.fgg.eur.nl> wrote in message
news:b35fla$q50$2@mrelay2.eur.nl...
> Today I realized something is amiss in IDL
> When I do
> index = [1,0,2,3,1,2,3,4]
> m = FLTARR(8)
> d = FINDGEN(8)
> m[index] = d
> print, m
> 1.00000 4.00000 5.00000 6.00000 7.00000
> 0.000000 0.000000 0.000000
>
> Now I would have assumed that IDL would automatically *add* the numbers
with
> identical indices. Not doing so is a potential performance penaly, right ?
Or am I mistaken....

This subject is discussed in the "Vectorization question" thread associated
with my name at Google Groups:

http://groups.google.com/groups?group=comp.lang.idl-pvwave

Cheers,
Liam Gumley.
Practical IDL Programming
http://www.gumley.com/
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Plotting to more than one window
Next Topic: Altivec support in ENVI and/or IDL?

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

Current Time: Fri Oct 10 06:20:58 PDT 2025

Total time taken to generate the page: 0.71988 seconds