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

Home » Public Forums » archive » Array-transformation
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
Array-transformation [message #39180] Wed, 28 April 2004 00:20
Thomas Ohde is currently offline  Thomas Ohde
Messages: 10
Registered: November 2000
Junior Member
I want to transform a 1-dim array to a 2-dim array. How can I do this very
quickly without loops?

Example:
a=BYTARR(1284640)
b=BYTARR(1147,1120)

k=0
FOR i = 0, 1147-1 DO BEGIN
FOR j = 0, 1120-1 DO BEGIN
b[i, j] = a[k]
k=k+1
ENDFOR
ENDFOR

Thomas Ohde
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Accessing Envi Queue programatically
Next Topic: Re: Array-transformation

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

Current Time: Sat Oct 11 04:26:23 PDT 2025

Total time taken to generate the page: 2.55977 seconds