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

Home » Public Forums » archive » Incrementing an Array
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Incrementing an Array [message #24903] Fri, 27 April 2001 13:57
s007amf is currently offline  s007amf
Messages: 8
Registered: January 2001
Junior Member
Once again I am struggling with the finer points of IDL. What I am trying
to do seems simple, but is causing me some headaches. What I am trying to
do is this:

matrix[x,y,z] = matrix[x,y,z] + 1

Where matrix is a 3D array and x,y,z are 1D arrays. Matrix starts out
all 0's and I am trying to increment values at elements [x,y,z]. The
problem
is that some elements should be incremented multiple times. All the
proper elements are incremented once, but the second, third,
fourth....increments are not showing up. Any ideas? I know that I could
write this with loops, but that would be too slow.


Thanks,


Alan
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: subtle but important
Next Topic: Re: Incrementing an Array

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

Current Time: Wed Oct 08 19:46:29 PDT 2025

Total time taken to generate the page: 0.00519 seconds