Re: col-vector * row-vector = matrix, how ?
- To: mathgroup at smc.vnet.net
- Subject: [mg18573] Re: [mg18451] col-vector * row-vector = matrix, how ?
- From: "Mark E. Harder" <harderm at ucs.orst.edu>
- Date: Tue, 13 Jul 1999 01:01:18 -0400
- Sender: owner-wri-mathgroup at wolfram.com
Malte; This works: MatrixForm[Outer[Times,{a,b,c},{x,y,z} ] ] Note that Outer[Times... is just an outer product of two lists. The concept of column- versus row- vectors is irrelevant, but the outer product is not commutative. -mark harder -----Original Message----- From: Malte Lance <malte.lance at gmx.net> To: mathgroup at smc.vnet.net Subject: [mg18573] [mg18451] col-vector * row-vector = matrix, how ? >Need to know how to accomplish the following in Mathematica-3.0: > >v1 := transpose(<a,b,c>) /* column-vector */ > >v2 := <x,y,z> /* row-vector */ > >( ax ay az ) >( bx by bz ) = v1 * v2 =: m /* 3x3-matrix */ >( cx cy cz ) > >Does anyone know how to do this in Mathematica ? > >Any help is highly appreciated. >Thanks in advance. > >Malte. > >-- >Malte Lance. >--- composed with knews >