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

Home » Public Forums » archive » Re: Multiply matrix
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: Multiply matrix [message #52638 is a reply to message #52637] Mon, 19 February 2007 01:26 Go to previous messageGo to previous message
Wox is currently offline  Wox
Messages: 184
Registered: August 2006
Senior Member
This:

FOR I=0,nz-1 DO
z[indgen(nx),indgen(ny),I]=Z[indgen(nx),indgen(ny),I]*filter

can be done like this:

z*=rebin(reform(indgen(nz),1,1,nz),nx,ny,nz,/sample)

However, is this really what you want? i have the feeling you want to
do something else here, or is it just me :-)?


On 18 Feb 2007 07:12:05 -0800, "L. Testut" <gaillac.spam@free.fr>
wrote:

> Sorry it doesn't work in my case I want to avoid this loop:
>
> FOR I=0,nz-1 DO
> z[indgen(nx),indgen(ny),I]=Z[indgen(nx),indgen(ny),I]*filter
>
> I have a H[nx,ny,nz] where nz is the time. So i have nz field in time
> that i want to multiply by a filter of size nz.
>
> Is it possible to avoid this loop ?
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: Image profiles along a curved line
Next Topic: Retrieving variables from a subroutine

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

Current Time: Sat Oct 11 07:36:32 PDT 2025

Total time taken to generate the page: 0.95753 seconds