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

Home » Public Forums » archive » 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
array multiply question [message #20495] Thu, 29 June 2000 00:00 Go to next message
promashkin is currently offline  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 Go to previous message
promashkin is currently offline  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
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Formatted Reads of Arrays
Next Topic: Vertices and Polygons

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

Current Time: Sun Oct 12 00:01:28 PDT 2025

Total time taken to generate the page: 0.00382 seconds