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

Home » Public Forums » archive » populating an array
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
populating an array [message #48167] Thu, 30 March 2006 07:34 Go to previous message
subir.vasanth is currently offline  subir.vasanth
Messages: 5
Registered: March 2006
Junior Member
Greetings!

I was wondering if there was a more efficient way to populate an array
created using the MAKE_ARRAY function. This is how I am populating the
array right now -

data = BYTARR(202000L)
; populate byte array with valid data from some input source
array = MAKE_ARRAY(1000,101, Type = 2)
offset = 0L
FOR k = 0L, 100999L DO BEGIN
array(k) = FIX(data, offset)
offset = offset + 2
ENDFOR

Is there a way I can populate 'array' without using a loop to populate
each element, and instead do a array = FIX(data)??

Thanks,
subir
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: 3d scatter plot
Next Topic: Re: populating an array

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

Current Time: Wed Oct 08 19:12:52 PDT 2025

Total time taken to generate the page: 0.00434 seconds