array multiply question [message #20495] |
Thu, 29 June 2000 00:00  |
promashkin
Messages: 169 Registered: December 1999
|
Senior Member |
|
|
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
|
|
|
Re: array multiply question [message #20560 is a reply to message #20495] |
Wed, 05 July 2000 00:00  |
promashkin
Messages: 169 Registered: December 1999
|
Senior Member |
|
|
Thanks Marc. Before I wrote the question, I read Help on REBIN but it
did not ring a bell. It is sad to realize how dumb you can be on an
afternoon before a day you plan to take off :-( I am glad today I
haven't written much code that day.
Cheers,
Pavel
marc wrote:
>
> c=transpose(rebin(b,3,5))
> result=a*c
>
> cheers,
> :-) marc
|
|
|