Re: matrix times a vector
- To: mathgroup at smc.vnet.net
- Subject: [mg49038] Re: matrix times a vector
- From: "Steve Luttrell" <steve_usenet at _removemefirst_luttrell.org.uk>
- Date: Tue, 29 Jun 2004 04:50:18 -0400 (EDT)
- References: <cbokn1$4bl$1@smc.vnet.net>
- Sender: owner-wri-mathgroup at wolfram.com
You need to omit the "dot" operator from your expression: {{a, b}, {c, d}}{x, y} gives {{a x, b x}, {c y, d y}} This also generalises to the N component case. Steve Luttrell "David Salomon" <david.salomon at csun.edu> wrote in message news:cbokn1$4bl$1 at smc.vnet.net... > 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? > > with thanks, > > > |David Salomon | | > |Computer Science Dept. dsalomon at csun.edu | > |California State University http://www.ecs.csun.edu/~dxs | > |Northridge, CA 91330-8281 (818) 677-4954 | > |USA fax (818) 677-7208 | > | | > | Macintosh --- because you can see right through windows. | >