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

Home » Public Forums » archive » Re: A simple vector - array operation
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: A simple vector - array operation [message #70903 is a reply to message #70902] Wed, 12 May 2010 08:35 Go to previous messageGo to previous message
Carsten Lechte is currently offline  Carsten Lechte
Messages: 124
Registered: August 2006
Senior Member
francois wrote:
> Let say that I have an array A of 25 columns by 100 lines and a vector
> V of 25 elements.
> ...
> What would be a fast way of doing this without using the FOR loop ?

You could try A = REBIN( V, 25, 100) or A = TRANSPOSE( REBIN( V, 25, 100))

Depending on the sizes of the arrays and your RAM, this method should
usually be faster than the loop.


chl
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: A simple vector - array operation
Next Topic: Re: Landsat HDF

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

Current Time: Fri Oct 10 14:49:15 PDT 2025

Total time taken to generate the page: 1.68183 seconds