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

Home » Public Forums » archive » Coding for speed help needed
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: Coding for speed help needed [message #9077 is a reply to message #9076] Wed, 28 May 1997 00:00 Go to previous message
jackel[1] is currently offline  jackel[1]
Messages: 11
Registered: May 1997
Junior Member
In article <5mhn9v$r3r@gazette.bcm.tmc.edu> pford@bcm.tmc.edu (Patrick V. Ford) writes:

> What I would like to do, is do this in IDL where the result would go into A,
> where
> A = fltarr(64,64)
> and the byte array is
> B = bytarr(64*64*4)

Not sure if I understand properly, but if your array "B" was of the
form B=bytarr(4,64,64), then doing A= long(b,0,64,64) would turn
each 4 byte chunk into a long word. Check the documentation for
the "offset" argument to "long" (and float and fix etc). If that's
what you want, then try using "transpose" to get "B" into the proper
shape.

Brian Jackel
[Message index]
 
Read Message
Read Message
Previous Topic: 27 MILLION WAYS To Make Money
Next Topic: FreeNetAccessWorldwid+

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

Current Time: Sun Nov 30 19:15:15 PST 2025

Total time taken to generate the page: 0.00951 seconds