| Type | Condition | Example |
|---|---|---|
| Column matrix | Only one column (order m × 1) | [4; −1; 7] |
| Row matrix | Only one row (order 1 × n) | [2 0 −3 5] |
| Square matrix | Number of rows = number of columns | [1 2; 3 4] |
| Diagonal matrix | Square, with aᵢⱼ = 0 whenever i ≠ j | [3 0; 0 −2] |
| Scalar matrix | Diagonal, with all diagonal entries equal to one number k | [5 0; 0 5] |
| Identity matrix Iₙ | Scalar matrix with k = 1 | I₂ = [1 0; 0 1] |
| Zero (null) matrix O | Every entry is 0 (any order) | [0 0 0; 0 0 0] |
How the square-matrix types nest
- Square matrix rows = columns
- Diagonal matrix square, zeros off the diagonal
- Scalar matrix diagonal, equal diagonal entries k
- Identity matrix scalar with k = 1
A = [aᵢⱼ]ₘ×ₙ has mn elements; aᵢⱼ sits in row i, column j. Equal matrices: same order and equal corresponding entries.
Key takeaways: order is rows × columns; aᵢⱼ means row i, column j. Build a matrix from a rule by substituting each pair (i, j). Diagonal ⊃ scalar ⊃ identity among square matrices. Equal matrices give one equation per entry.