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

Home » Public Forums » archive » Loop question
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
Loop question [message #20400] Mon, 19 June 2000 00:00
rkj is currently offline  rkj
Messages: 66
Registered: February 1996
Member
Can the following FOR loop be vectorized?

samples=256
temp_arr=FLTARR(samples)
data_arr=FLTARR(5000)
ind_arr=LONG(LINDGEN(1000)*0.256)

FOR j=0L,samples-1 DO BEGIN
temp_ind=WHERE(j EQ ind_arr)
temp_arr(j)=data_arr(temp_ind(0))
ENDFOR


Kyle J.
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: Loop question
Next Topic: using TVRD on idl 5.1

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

Current Time: Wed Oct 08 17:38:45 PDT 2025

Total time taken to generate the page: 0.00476 seconds