3.1 Definitions and conventions

A matrix is a collection of numbers arranged in a rectangular array of rows and columns, such as

[324112]\left[ \begin{array}{rr} 3 & 2 \\ 4 & -1 \\ -1 & 2 \end{array} \right]

A matrix with rr rows and cc columns is said to be an r×cr \times c matrix (e.g., the matrix above is a 3×23 \times 2 matrix).

In the case where a matrix has just a single row or column, it is said to be a vector, such as

[31]\left[ \begin{array}{r} 3 \\ -1 \end{array} \right]

Conventionally, vectors and matrices are denoted in lower- and upper-case boldface, respectively (e.g., xx is a scalar, x\mathbf{x} is a vector, and X\mathbf{X} is a matrix). In addition, vectors are taken to be column vectors – i.e., a vector of nn numbers is an n×1n \times 1 matrix, not a 1×n1 \times n matrix.

The ijijth element of a matrix M\mathbf{M} is denoted by MijM_{ij} or (M)ij(\mathbf{M})_{ij}.

For example, letting M\mathbf{M} denote the above matrix, M11=3M_{11}=3, (M)32=2(\mathbf{M})_{32}=2, and so on. Similarly, the jjth element of a vector v\mathbf{v} is denoted vjv_j; e.g., letting v\mathbf{v} denote the above vector, v1=3v_1 = 3.