Re: matrix times a vector
- To: mathgroup at smc.vnet.net
- Subject: [mg49065] Re: [mg49002] matrix times a vector
- From: Gianluca Gorni <gorni at dimi.uniud.it>
- Date: Wed, 30 Jun 2004 05:34:12 -0400 (EDT)
- Sender: owner-wri-mathgroup at wolfram.com
This seems to work in your example:
Transpose[{{a, b}, {c, d}}].{x, y}
Best regards,
Gianluca Gorni
> On Jun 28, 2004, at 4:13 AM, David Salomon wrote:
>
>> Question:
>>
>> The input {{a,b}, {c,d}}.{x,y} generates the output {a x+b y,c
>> x+d y}.
>>
>> How can I get the output x{a,b}+y{c,d} ?
>>
>> This is a special case of lists with two elements. How
>> can I extend this computation in an elegant way to lists
>> with N elements?
>>