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

Home » Public Forums » archive » How can I integrate? (easy question?)
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
How can I integrate? (easy question?) [message #2] Wed, 20 March 1991 04:37 Go to previous message
bdb112 is currently offline  bdb112
Messages: 3
Registered: March 1991
Junior Member
How can I efficiently do a running sum of a vector (integrate)? The explicitly
coded version (IDL v2)
for i=1,n-1 x(i)=x(i) + x(i-1) achieves the desired effect, but takes (VS3100)
1 second for a 2000 element array compared to .01 sec for z=x+x, a similar
number of operations. This is such an obvious thing to do that I must be
missing something obvious - I can't find it in the userlib either (just
deriv).
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: X window backing store
Next Topic: Re: X window backing store

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

Current Time: Wed Oct 08 18:53:39 PDT 2025

Total time taken to generate the page: 0.00441 seconds