A matrix is a rectangular array of numbers treated as a single object. A block matrix is a matrix whose elements are themselves matrices, which are called submatrices. By allowing a matrix to be viewed at different levels of abstraction, the block matrix viewpoint enables elegant proofs of results and facilitates the development and understanding of numerical algorithms.
A block matrix is defined in terms of a partitioning, which breaks a matrix into contiguous pieces. The most common and important case is for an n×n matrix to be partitioned as a block 2×2 matrix (two block rows and two block columns). For n=4, partitioning into 2×2 blocks gives
and similarly for the other blocks. The diagonal blocks in a partitioning of a square matrix are usually square (but not necessarily so), and they do not have to be of the same dimensions. This same 4×4 matrix could be partitioned as
where A11=(a11) is a scalar, A21 is a column vector, and A12 is a row vector.
The sum C=A+B of two block matrices A=(Aij) and B=(Bij) of the same dimension is obtained by adding blockwise as long as Aij and Bij have the same dimensions for all i and j, and the result has the same block structure: Cij=Aij+Bij,
The product C=AB of an m×n matrix A=(Aij) and an n×p matrix B=(Bij) can be computed as Cij=∑kAikBkj as long as the products AikBkj are all defined. In this case the matrices A and B are said to be conformably partitioned for multiplication. Here, C has as many block rows as A and as many block columns as B. For example,
as long as all the eight products AikBkj are defined.
Block matrix notation is an essential tool in numerical linear algebra. Here are some examples of its usage.
Matrix Factorization
For an n×n matrix A with nonzero (1,1) element α we can write
A=[αcbTD]=[1c/α0In−1][α0bTD−cbT/α]=:L1U1
The first row and column of L1 have the correct form for a unit lower triangular matrix and likewise the first row and column of U1 have the correct form for an upper triangular matrix. If we can find an LU factorization D−cbT/α=L2U2 of the (n−1)×(n−1) Schur complement D then A=L1diag(1,L2)⋅diag(1,U2)U1 is an LU factorization of A. This construction is the basis of an inductive proof of the existence of an LU factorization (provided all the pivots are nonzero) and it also yields an algorithm for computing it.
The same type of construction applies to other factorizations, such as Cholesky factorization, QR factorization, and the Schur decomposition.
Matrix Inverse
A useful formula for the inverse of a nonsingular block triangular matrix
T=[T110T12T22]
is
T−1=[T11−10−T11−1T12T22−1T22−1],
which has the special case
[I0XI]−1=[I0−XI].
If T is upper triangular then so are T11 and T22. By taking T11 of dimension the nearest integer to n/2 this formula can be used to construct a divide and conquer algorithm for computing T−1.
We note that det(T)=det(T11)det(T22), a fact that will be used in the next section.
Determinantal Formulas
Block matrices provides elegant proofs of many results involving determinants. For example, consider the equations
which hold for any A and B such that AB and BA are defined. Taking determinants gives the formula det(I+AB)=det(I+BA). In particular we can take A=x, B=yT, for n-vectors x and y, giving det(I+xyT)=1+yTx.
Constructing Matrices with Required Properties
We can sometimes build a matrix with certain desired properties by a block construction. For example, if X is an n×n involutory matrix (X2=I) then
[X0I−X]
is a (block triangular) 2n×2n involutory matrix. And if A and B are any two n×n matrices then
[I−BA2A−ABABAB−I]
is involutory.
The Anti Block Diagonal Trick
For n×n matrices A and B consider the anti block diagonal matrix
X=[0BA0].
Note that
X2=[AB00BA],X−1=[0A−1B−10].
Using these properties one can show a relation between the matrix sign function and the principal matrix square root:
sign([0IA0])=[0A−1/2A1/20].
This allows one to derive iterations for computing the matrix square root and its inverse from iterations for computing the matrix sign function.
It is easy to derive explicit formulas for all the powers of X, and hence for any power series evaluated at X. In particular, we have the formula
where Y denotes any square root of Y. With B=I, this formula arises in the solution of the ordinary differential equation initial value problem y′′+Ay=0, y(0)=y0, y′(0)=y0′,
The most well known instance of the trick is when B=AT. The eigenvalues of
X=[0ATA0]
are plus and minus the singular values of A, together with ∣m−n∣ additional zeros if A is m×n with m=n, and the eigenvectors of X and the singular vectors of A are also related. Consequently, by applying results or algorithms for symmetric matrices to X one obtains results or algorithms for the singular value decomposition of A.
References
This is a minimal set of references, which contain further useful references within.
Gene Golub and Charles F. Van Loan, Matrix Computations, fourth edition, Johns Hopkins University Press, Baltimore, MD, USA, 2013.
Nicholas J. Higham, Functions of Matrices: Theory and Computation, Society for Industrial and Applied Mathematics, Philadelphia, PA, USA, 2008. (Sections 1.5 and 1.6 for the theory of matrix square roots.)
Roger A. Horn and Charles R. Johnson, Matrix Analysis, second edition, Cambridge University Press, 2013. My review of the second edition.