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 #70902] Wed, 12 May 2010 09:21 Go to previous message
Timm Weitkamp is currently offline  Timm Weitkamp
Messages: 66
Registered: August 2002
Member
On May 12, 5:35 pm, Carsten Lechte <c...@toppoint.de> wrote:

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

Instead of the latter, A = REBIN(TRANSPOSE(V), 100, 25) may be
slightly more efficient.

But you can also use a matrix multiplication: A = MAKE_ARRAY(100,
VALUE=1) # V

The question whether the REBIN or the matrix multiplication is faster
is not easy to answer. It will depend on number of elements and on the
hardware and software configuration you are using.

Timm
[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 07:56:08 PDT 2025

Total time taken to generate the page: 0.32075 seconds