Re: Multiplying a vector over multiple vectors
- To: mathgroup at smc.vnet.net
- Subject: [mg91166] Re: Multiplying a vector over multiple vectors
- From: Albert Retey <awnl at gmx-topmail.de>
- Date: Fri, 8 Aug 2008 07:13:44 -0400 (EDT)
- References: <g7ed6u$2pm$1@smc.vnet.net>
Hi,
> How does one get a vector to distribute over
> a list of vectors under multiplication?
>
> For example:
>
> {{1,2}, {3,4}, {5,6}} times {a,b} should
> equal (under this operation)
>
> {{a, 2b}, {3a, 4b}, {5a, 6b}}
Thread[Times[Transpose@{{1, 2}, {3, 4}, {5, 6}}, {a, b}]]
hth,
albert