The vectorization of a matrix is a linear transformation that converts the matrix into a column vector.

The vectorization of an $m \times n$ matrix $A$, denoted by $\mbox{vec} (A)$, is the $m n \times 1$ column vector obtained by stacking the columns of matrix $A$ on top of one another.