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

Home » Public Forums » archive » 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
Odd behaviour in array indexing ? [message #34186] Fri, 21 February 2003 07:11
mwvogel is currently offline  mwvogel
Messages: 9
Registered: February 2003
Junior Member
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....
[Message index]
 
Read Message
Previous Topic: Re: WRITING HDF FILES
Next Topic: File in use

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

Current Time: Sat Oct 11 01:01:12 PDT 2025

Total time taken to generate the page: 1.12128 seconds