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

Home » Public Forums » archive » Efficient Programming
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
Efficient Programming [message #4618] Sun, 02 July 1995 00:00
dean is currently offline  dean
Messages: 55
Registered: March 1993
Member
What would be the most efficient way to get this to work in IDL. This is
obvious slow with the FOR DO BEGIN.....


Kelly Dean
CSU/CIRA

============================================================ ===============

nx = 1024
ny = 768
North_bound = 3429
West_bound = 9249
line_res = 4
elem_res = 8
LINarr = LONarr(nx*ny)
PIXarr = LONarr(nx*ny)
k = 0L
FOR y = 0, ny-1 DO BEGIN
FOR x = 0, nx-1 DO BEGIN
LINarr(k) = North_bound + ( y * line_res)
PIXarr(k) = West_bound + ( x * elem_res)
k = k + 1L
ENDFOR
ENDFOR
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: Efficient Programming
Next Topic: Re: Feature with PV-WAVE routine INVERT

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

Current Time: Wed Oct 08 14:32:39 PDT 2025

Total time taken to generate the page: 0.00604 seconds