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

Home » Public Forums » archive » Re: array multiply question
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: array multiply question [message #20493] Fri, 30 June 2000 00:00
marc schellens[1] is currently offline  marc schellens[1]
Messages: 183
Registered: January 2000
Senior Member
Pavel Romashkin wrote:
>
> Hi,
> I am sure I have seen this ? before, but I can not find it after
> searching the resources. I apologize for repeating the ? again, but how
> do we multiply a 2D array by a vector?
> In more detail, if I have A=FLTARR(5, 3) and B=FLTARR(3), then how do I
> multiply each of 5 columns in A by B without a loop?
> Thank you,
> Pavel

c=transpose(rebin(b,3,5))
result=a*c

cheers,
:-) marc
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: terrain normalisation
Next Topic: Re: Impressions on IDL for Macintosh?

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

Current Time: Wed Oct 08 15:52:32 PDT 2025

Total time taken to generate the page: 0.00494 seconds