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

Home » Public Forums » archive » reversing calculation order
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
reversing calculation order [message #4087] Mon, 24 April 1995 00:00 Go to previous message
rclark is currently offline  rclark
Messages: 12
Registered: September 1992
Junior Member
I need to fill in some values for a vector from a recurrence relation.

V(0:N-1) = func(V(1:*)) ;I wish there was a shorthand for (*-1)

Where V(N) is the only value initially defined (Well actually it is
calculated from an ascending recurrence relation but the values of
V(0:N-1) from that step are of no further interest. The results of the
second recurrence are the ones returned.)

I know that ROTATE can be used to reverse the order of the vector for the
calculation, and then reverse them again to put it back in the right
order. But is it possible to eliminate these two reverse operations and do
the calculation in backwards direction? (no FOR loops, too slow!)

The vector is fairly short but this function will get called a lot.

Richard Clark
rclark@lpl.arizona.edu
--
Still working on the other 999 lines.
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: Envi ROI Spectral/Bandmath
Next Topic: Is there an emacs mode??

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

Current Time: Fri Oct 10 07:41:19 PDT 2025

Total time taken to generate the page: 1.52239 seconds