This article includes a list of general references but lacks sufficient corresponding inline citations. (November 2022) |
In linear algebra, a column vector with elements is an matrix consisting of a single column of entries. Similarly, a row vector is a matrix, consisting of a single row of entries. For example, is a column vector and is a row vector:
The transpose (indicated by T) of any row vector is a column vector, and the transpose of any column vector is a row vector: Taking the transpose twice returns the original (row or column) vector: .
The set of all row vectors with n entries in a given field (such as the real numbers) forms an n-dimensional vector space; similarly, the set of all column vectors with m entries forms an m-dimensional vector space.
The space of row vectors with n entries can be regarded as the dual space of the space of column vectors with n 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.
Some authors also use the convention of writing both column vectors and row vectors as rows, but separating row vector elements with commas and column vector elements with semicolons (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.
The dot product of two column vectors a, b, considered as elements of a coordinate space, is equal to the matrix product of the transpose of a with b,
By the symmetry of the dot product, the dot product of two column vectors a, b is also equal to the matrix product of the transpose of b with a,
The matrix product of a column and a row vector gives the outer product of two vectors a, b, an example of the more general tensor product. The matrix product of the column vector representation of a and the row vector representation of b gives the components of their dyadic product,
which is the transpose of the matrix product of the column vector representation of b and the row vector representation of a,
An n × n matrix can represent a linear map and act on row and column vectors as the linear map's transformation matrix. For a row vector , the product is another row vector :Another n × n matrix Q can act on :One can also write where the matrix product transformation maps directly to . Further transformations can be added to the right of previous outputs.
To apply the same transformations to a column vector , both and must be transposed:Additionally, the transformation matrix must occur on the left side of (otherwise the operation is undefined since the number of columns in would not match the number of rows in ). Further transformations must be added to the left of previous outputs:Leading to the expression for the composed output from input.