6.1 Some definitions
Suppose we have a matrix X with n rows and p columns; that is, X is an n×p matrix. Matrices are usually denoted by an upright capital letter: X.
The matrix XT is the transpose of matrix X, where the rows of matrix X become the corresponding columns of matrix XT. The transpose has size p×n.
Example 6.1 (Transposing) Consider the 2×3 matrix M, defined as M=[3−1122−40]. Then the 3×2 transpose is MT=[32−1−4120].
A square matrix has the same number of rows as columns.
Example 6.2 (Square matrix) The 2×2 matrix D is a square matrix: D=[5−112.257].
A square matrix with zeros on the off-diagonal elements is called a diagonal matrix.
Example 6.3 (Diagonal matrix) The 2×2 matrix P is a diagonal matrix: P=[−3.1002.5].
A diagonal matrix with ones and only ones on the diagonal is called an identity matrix, sometimes written I.
Example 6.4 (Identity matrix) The identity matrix of size 3×3 is [100010001], sometimes written I3 where the subscript indicates the size of the (square) matrix.
A vector is a single-column matrix, usually denoted using bold letters. For example, consider the vector a=[10−6].