MathGroup Archive 2004

[Date Index] [Thread Index] [Author Index]

Search the Archive

matrix times a vector

  • To: mathgroup at
  • Subject: [mg49002] matrix times a vector
  • From: David Salomon <david.salomon at>
  • Date: Mon, 28 Jun 2004 04:13:46 -0400 (EDT)
  • Sender: owner-wri-mathgroup at


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        |
|California State University        |
|Northridge, CA 91330-8281                  (818) 677-4954                |
|USA                                        fax (818) 677-7208            |
|                                                                         |
|            Macintosh --- because you can see right through windows.     |

  • Prev by Date: Pattern Matching
  • Next by Date: AW: more question about plotting
  • Previous by thread: RE: Pattern Matching
  • Next by thread: Re: matrix times a vector