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

Home » Public Forums » archive » How to remove For..Endfor loops in these case?
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 to remove For..Endfor loops in these case? [message #19411] Tue, 14 March 2000 00:00
Sang-Heon Shim is currently offline  Sang-Heon Shim
Messages: 11
Registered: October 1998
Junior Member
Dear experts,
I have slow IDL rouine which contains following for..endfor loops. I
am trying to tranform these loops to array manipulation to improve
speed. However, it is hard for me to solve these.

pind=[0,1,2,3]

for i=0,2 do a_new[*,pind,i] = replicate(1.0,ndata) # aa[pind*3+i]

for i=ngauprm, nprm-1 do pder[*,i] = x[*]^float(i-ngauprm)

Thanks.

-- Dan
[Message index]
 
Read Message
Previous Topic: SVDFIT bug?
Next Topic: Help: Weighted quadratic fitting under IDL?

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

Current Time: Sat Oct 11 10:33:47 PDT 2025

Total time taken to generate the page: 0.64264 seconds