A matrix is a -by- tuple of elements for and . The matrix has rows and columns, represented as
Note that by this definition, a ๐น Vector can be viewed as a matrix where one dimension is ; a column vector is a matrix, and a row vector is a matrix.
Generalizing to more than two-dimensions, we get tensors Operations on tensors are usually less defined, but in many cases, we perform matrix operations on two dimensions of the tensor while ignoring the rest.
The inverse of square matrix is the matrix satisfying . Not all matrices have an inverse, but if they do, the inverse is unique, and the matrix has full rank . For matrix products, and .
The adjoint of a matrix is the matrix , where we first take the complex conjugate and then transpose the matrix; note that this means transpose and adjoint are the same for real matrices. Two key properties of adjoints is that
Analogously, the adjoint operator is defined as follows: for linear operator , the adjoint operator is and defined by
Real symmetric matrices are Hermitian. However, note that complex symmetric matrices are not Hermitian, as the adjoint also takes the complex conjugate.
A key property of Hermitian (and real symmetric) matrices is that they can be diagonalized with unitary matrix and diagonal such that eigenvalues are real, and eigenvectors are orthogonal. This is similar to ๐ค Schur Decomposition.
Similarly, a Hermitian matrix is positive definite if
for all (where ). Such a matrix has all eigenvalues . Also, this quality has a close connection with the ๐ณ Inner Product, and every matrix can form a positive semidefinite matrix .