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

Home » Public Forums » archive » Unavoidable looping?
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
Unavoidable looping? [message #60363] Fri, 16 May 2008 17:16
Chris[5] is currently offline  Chris[5]
Messages: 16
Registered: May 2008
Junior Member
I've seen IDL accomplish some mighty impressive tasks using vectors
and arrays when other languages would use loops. As such, like a good
IDL child I have been sold on the philosophy that, whenever possible,
a task that avoids a loop will outperform one that does loop (though
there are some posts here that argue otherwise).

However, there are some situations where loops seem unavoidable to me.
A category that comes to mind are problems where elements in a list
are dependent on the previous list elements. Differential equations,
for example, are solved by advancing a function in tiny steps and
continuously updating the size (and direction) of the next step. Such
a problem has to be evaluated sequentially. Is there any spiffy IDL
technique to solve such a problem without running into the efficiency
problems inherent in loops? Or is IDL simply not competitive with
other languages for such tasks?
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Fun with IDL 7
Next Topic: Floating underflow?

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

Current Time: Wed Oct 08 18:41:05 PDT 2025

Total time taken to generate the page: 0.00641 seconds