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

Home » Public Forums » archive » for loop elimination
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
for loop elimination [message #56203] Mon, 15 October 2007 13:37
jtmcahill is currently offline  jtmcahill
Messages: 26
Registered: October 2007
Junior Member
Hello,

I have been trying without success to get this simple calculation to
be done without using a loop. Here it is:

for y2=0L,n2-1 do e_sc[0,y2]=max(abs(sc_arr[*,y2]-model_sc[12:bands
+11,y2]))

Can I use the max function without and get an array of outputs without
having to do them one at a time. To put this into context, I have a
program that this piece of code is in and the program is taking too
long to compute. I'm figuring I start with eliminating for loops and
go from there to make it more efficient. Any ideas on this piece?

Hawaiianite
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: How to export latlongs?
Next Topic: Re: Convertion from binary string to 16bit integer

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

Current Time: Fri Oct 10 06:53:47 PDT 2025

Total time taken to generate the page: 1.19802 seconds