Re: Vector Transposition
- To: mathgroup at smc.vnet.net
- Subject: [mg14699] Re: Vector Transposition
- From: siegman at ee.stanford.edu (AES)
- Date: Sun, 8 Nov 1998 21:15:55 -0500
- Organization: Stanford University
- References: <720tce$1ve@smc.vnet.net>
- Sender: owner-wri-mathgroup at wolfram.com
In article <720tce$1ve at smc.vnet.net>, "Yves Gauvreau"
<gauy at videotron.ca> wrote:
* Hi,
*
* I have Mathematica V3.0 for student and I'd like to know if someone
as a * suggestion on how to do a Transpose on an expression that
evaluate to a * n x 1 or 1 x n vector. The use of Map[{#}&, x] only
works if x is a * vector.
*
* Thanks
*
* Yves
The following is one way to do this (the brackets are important):
rowVector={{a1,a2,a3}};
rowVector//MatrixForm
Transpose[rowVector]//MatrixForm
columnVector={{b1},{b2},{b3}};
columnVector//MatrixForm
Transpose[columnVector]//MatrixForm
dotProduct=rowVector.columnVector;
dotProduct//MatrixForm
outerProduct=columnVector.rowVector; outerProduct//MatrixForm
But, there are subtleties.