Inlinear algebra, acolumn vector with elements is anmatrix[1] consisting of a single column of entries, for example,
Similarly, arow vector is a matrix for some, consisting of a single row of entries,(Throughout this article, boldface is used for both row and column vectors.)
Thetranspose (indicated byT) of any row vector is a column vector, and the transpose of any column vector is a row vector:and
The set of all row vectors withn entries in a givenfield (such as thereal numbers) forms ann-dimensionalvector space; similarly, the set of all column vectors withm entries forms anm-dimensional vector space.
The space of row vectors withn entries can be regarded as thedual space of the space of column vectors withn entries, since any linear functional on the space of column vectors can be represented as the left-multiplication of a unique row vector.
To simplify writing column vectors in-line with other text, sometimes they are written as row vectors with the transpose operation applied to them.
or
Some authors also use the convention of writing both column vectors and row vectors as rows, but separating row vector elements withcommas and column vector elements withsemicolons (see alternative notation 2 in the table below).[citation needed]
Row vector
Column vector
Standard matrix notation (array spaces, no commas, transpose signs)
Alternative notation 1 (commas, transpose signs)
Alternative notation 2 (commas and semicolons, no transpose signs)
Matrix multiplication involves the action of multiplying each row vector of one matrix by each column vector of another matrix.
Thedot product of two column vectorsa,b, considered as elements of a coordinate space, is equal to the matrix product of the transpose ofa withb,
By the symmetry of the dot product, thedot product of two column vectorsa,b is also equal to the matrix product of the transpose ofb witha,
The matrix product of a column and a row vector gives theouter product of two vectorsa,b, an example of the more generaltensor product. The matrix product of the column vector representation ofa and the row vector representation ofb gives the components of their dyadic product,
which is thetranspose of the matrix product of the column vector representation ofb and the row vector representation ofa,
Ann ×n matrixM can represent alinear map and act on row and column vectors as the linear map'stransformation matrix. For a row vectorv, the productvM is another row vectorp:
Anothern ×n matrixQ can act onp,
Then one can writet =pQ =vMQ, so thematrix product transformationMQ mapsv directly tot. Continuing with row vectors, matrix transformations further reconfiguringn-space can be applied to the right of previous outputs.
When a column vector is transformed to another column vector under ann ×n matrix action, the operation occurs to the left,
leading to the algebraic expressionQMvT for the composed output fromvT input. The matrix transformations mount up to the left in this use of a column vector for input to matrix transformation.