A vector has magnitude and direction. In coordinate calculations, we commonly arrange its components as either a column vector or a row vector. A vector can also be shown with an arrow or other equivalent notation.
Column vectors are vectors whose components are written vertically (downward). While row vectors are vectors whose components are written horizontally (sideways).
A column vector and a row vector carry the same components in the same order, so they differ only in how those components are laid out. Parentheses and square brackets are both accepted.
In two dimensions, the components form the row (34) or [34]. Written as a column, they keep the same order:
(34)=[34]
In three dimensions, the row (213) or [213] becomes the following column. Component order stays the same even though the arrangement changes.
The same component vector can be represented in several useful ways:
Notation with regular parentheses:
213
Notation with square brackets:
213
Notation with Cartesian unit vectors:
2i+j+3k
All three expressions describe the same vector. The first two display its components as a column, while the third expresses those components along the Cartesian unit vectors. Symbols with vertical bars must be read from context: detA or ∣A∣ may denote the determinant of a square matrix, ∣x∣ denotes the absolute value of a scalar, and ∥v∥ denotes the magnitude, or norm, of a vector.
For the standard Cartesian basis, we choose one unit vector in each positive axis direction. A unit vector in the negative direction also exists, but it is the opposite of the chosen basis vector.
Unit vectors are vectors that have a length of 1 unit with a specific direction. In the Cartesian coordinate system, we recognize several unit vectors:
Column and row vectors have different shapes in operations such as matrix multiplication. Keep the chosen form consistent so that matrix dimensions match.
In computing, column and row vectors are used to represent data and variables in numerical programming, image processing, artificial intelligence, and many other fields.
Row and column shapes determine the product shape. Take the two components already used above:
r=(34),c=(34)
A row multiplied by a column produces one value because the result has shape 1×1:
rc=3⋅3+4⋅4=9+16=25
A column multiplied by a row produces a 2×2 matrix. Each column entry multiplies both row entries:
cr=(3⋅34⋅33⋅44⋅4)=(9121216)
The component values are the same, but reversing the multiplication order gives objects with different shapes.