Example · High school

\[\begin{bmatrix} 1 & 1 & 1 & 1 \\ 1 & 1 & 1 & 1 \\ 1 & 1 & 1 & 1 \end{bmatrix}\]

Terms

TermThis exampleWhy
array rank $2$ The $3 \times 4$ matrix of ones has array rank $2$, because it takes two indices (row and column) to pick out an entry.
shape $(3, 4)$ In NumPy, a.shape is (3, 4). In MATLAB, size(A) is [3 4].
array size $3 \cdot 4 = 12$ In NumPy, a.size is $12$. In MATLAB, numel(A) is $12$.
rank (of a matrix) $1$ The rank of the $3 \times 4$ matrix of ones is $1$, because every row is $(1, 1, 1, 1)$. The $3 \times 4$ matrix of ones has matrix rank $1$, because all of its columns are equal, so only one is linearly independent.
nullity (of a matrix) $3$ The $3 \times 4$ matrix of ones has nullity $3$, because its kernel is the set of vectors $x$ in $\reals^4$ such that $x_1 + x_2 + x_3 + x_4 = 0$, which is a $3$-dimensional subspace. This agrees with the rank–nullity theorem: $4 - 1 = 3$.
row echelon form ✗ The matrix \(\begin{bmatrix} 1 & 1 & 1 & 1 \\ 1 & 1 & 1 & 1 \\ 1 & 1 & 1 & 1 \end{bmatrix}\) is not in row echelon form, because the leading entry $1$ of row $2$, in column $1$, is not to the right of the leading entry $1$ of row $1$, in column $1$.
reduced row echelon form ✗ The matrix \(A = \begin{bmatrix} 1 & 1 & 1 & 1 \\ 1 & 1 & 1 & 1 \\ 1 & 1 & 1 & 1 \end{bmatrix}\) is not in reduced row echelon form, because it is not in row echelon form. Row reduction gives the reduced row echelon form of the matrix: \(\operatorname{RREF}(A) = \begin{bmatrix} 1 & 1 & 1 & 1 \\ 0 & 0 & 0 & 0 \\ 0 & 0 & 0 & 0 \end{bmatrix}.\)

Distinctions using this example

All examples · All distinctions · All definitions · Notation