Post · 11 min read· pp. 716–721

What Is an M-Matrix?

An MM-matrix is a matrix A∈Rn×nA\in\mathbb{R}^{n \times n} of the form

A=sI−B,where B≥0 and s>ρ(B).(∗)\notag A = sI - B, \quad \mathrm{where}~B \ge 0~\mathrm{and}~s > \rho(B). \qquad (*)

Here, ρ(B)\rho(B) is the spectral radius of BB, that is, the largest modulus of any eigenvalue of BB, and B≥0B \ge 0 denotes that BB has nonnegative entries. An MM-matrix clearly has nonpositive off-diagonal elements. It also has positive diagonal elements, which can be shown using the result that

ρ(A)=lim⁡k→∞∥Ak∥1/k(†)\notag \rho(A) = \lim_{k\to\infty} \|A^k\|^{1/k} \qquad (\dagger)

for any consistent matrix norm:

s>ρ(B)=lim⁡k→∞∥Bk∥∞1/k≥lim⁡k→∞∥diag(bii)k∥∞1/k=max⁡ibii.\notag s > \rho(B) = \lim_{k\to\infty} \|B^k\|_{\infty}^{1/k} \ge \lim_{k\to\infty} \|\mathrm{diag}(b_{ii})^k\|_{\infty}^{1/k} = \max_i b_{ii}.

Although the definition of an MM-matrix does not specify ss, we can set it to max⁡iaii\max_i a_{ii}. Indeed let ss satisfy (∗)(*) and set s~=max⁡iaii\widetilde{s} = \max_i a_{ii} and B~=s~I−A\widetilde{B} = \widetilde{s}I - A. Then B~≥0\widetilde{B} \ge 0, since b~ii=s~−aii≥0\widetilde{b}_{ii} = \widetilde{s} - a_{ii} \ge 0 and b~ij=−aij=bij≥0\widetilde{b}_{ij} = -a_{ij} = b_{ij} \ge 0 for i≠ji \ne j. Furthermore, for a nonnegative matrix the spectral radius is an eigenvalue, by the Perron–Frobenius theorem, so ρ(B)\rho(B) is an eigenvalue of BB and ρ(B)~\rho(\widetilde{B)} is an eigenvalue of B~\widetilde{B}. Hence ρ(B~)=ρ((s~−s)I+B)=s~−s+ρ(B)<s~\rho(\widetilde{B}) = \rho( (\widetilde{s}-s)I + B) = \widetilde{s} -s + \rho(B) < \widetilde{s}.

The concept of MM-matrix was introduced by Ostrowski in 1937. MM-matrices arise in a variety of scientific settings, including in finite difference methods for PDEs, input-output analysis in economics, and Markov chains in stochastic processes.

An immediate consequence of the definition is that the eigenvalues of an MM-matrix lie in the open right-half plane, which means that MM-matrices are special cases of positive stable matrices. Hence an MM-matrix is nonsingular and the determinant, being the product of the eigenvalues, is positive. Moreover, since C=s−1BC = s^{-1}B satisfies ρ(C)<1\rho(C) < 1,

A−1=s−1(I−C)−1=s−1(I+C+C2+⋯ )≥0.\notag A^{-1} = s^{-1}(I - C)^{-1} = s^{-1}(I + C + C^2 + \cdots) \ge 0.

In fact, nonnegativity of the inverse characterizes MM-matrices. Define

Zn={ A∈Rn×n:aij≤0,  i≠j }.\notag Z_n = \{ \, A \in \mathbb{R}^{n\times n}: a_{ij} \le 0, \; i\ne j \,\}.

Theorem 1.

A nonsingular matrix A∈ZnA\in Z_n is an MM-matrix if and only if A−1≥0A^{-1} \ge 0.

Sometimes an MM-matrix is defined to be a matrix with nonpositive off-diagonal elements and a nonnegative inverse. In fact, this condition is just one of a large number of conditions equivalent to a matrix with nonpositive off-diagonal elements being an MM-matrix, fifty of which are given in Berman and Plemmons (1994, Chap. 6).

It is easy to check from the definitions, or using Theorem 1, that a triangular matrix TT with positive diagonal and nonpositive off-diagonal is an MM-matrix. An example is

\notag T_4 = \left[\begin{array}{@{\mskip 5mu}c*{3}{@{\mskip 15mu} r}@{\mskip 5mu}} 1 & -1 & -1 & -1 \\ & 1 & -1 & -1 \\ & & 1 & -1 \\ & & & 1 \end{array}\right], \quad T_4^{-1} = \begin{bmatrix} 1 & 1 & 2 & 4\\ & 1 & 1 & 2\\ & & 1 & 1\\ & & & 1 \end{bmatrix}.

Bounding the Norm of the Inverse

An MM-matrix can be constructed from any nonsingular triangular matrix by taking the comparison matrix. The comparison matrix associated with a general B∈Rn×nB\in\mathbb{R}^{n \times n} is the matrix

M(B)=(mij),mij={∣bii∣,i=j,−∣bij∣,i≠j.\notag M(B) = (m_{ij}), \quad m_{ij} = \begin{cases} |b_{ii}|, & i=j, \\ -|b_{ij}|, & i\ne j. \end{cases}

For a nonsingular triangular TT, M(T)M(T) is an MM-matrix, and it easy to show that

∣T−1∣≤∣M(T)−1∣,\notag |T^{-1}| \le |M(T)^{-1}|,

where the absolute value is taken componentwise. This bound, and weaker related bounds, can be useful for cheaply bounding the norm of the inverse of a triangular matrix. For example, with ee denoting the vector of ones, since M(T)−1M(T)^{-1} is nonnegative we have

∥T−1∥∞≤∥M(T)−1∥∞=∥M(T)−1e∥∞,\notag \|T^{-1}\|_{\infty} \le \|M(T)^{-1}\|_{\infty} = \|M(T)^{-1}e\|_{\infty},

and ∥M(T)−1e∥∞\|M(T)^{-1}e\|_{\infty} can be computed in O(n2)O(n^2) flops by solving a triangular system, whereas computing T−1T^{-1} costs O(n3)O(n^3) flops.

More generally, if we have an LU factorization PA=LUPA = LU of an MM-matrix A∈Rn×nA\in\mathbb{R}^{n \times n} then, since A−1≥0A^{-1} \ge 0,

∥A−1∥∞=∥A−1e∥∞=∥U−1L−1Pe∥∞=∥U−1L−1e∥∞.\notag \|A^{-1}\|_{\infty} = \|A^{-1}e\|_{\infty} = \|U^{-1}L^{-1}Pe\|_{\infty} = \|U^{-1}L^{-1}e\|_{\infty}.

Therefore the norm of the inverse can be computed in O(n2)O(n^2) flops with two triangular solves, instead of the O(n3)O(n^3) flops that would be required if A−1A^{-1} were to be formed explicitly.

Connections with Symmetric Positive Definite Matrices

There are many analogies between M-matrices and symmetric positive definite matrices. For example, every principal submatrix of a symmetric positive definite matrix is symmetric positive definite and every principal submatrix of an MM-matrix is an MM-matrix. Indeed if B~\widetilde{B} is a principal submatrix of a nonnegative BB then ρ(B~)≤ρ(B)\rho(\widetilde{B}) \le \rho(B), which follows from (†)(\dagger) for the ∞\infty-norm (for example). Hence on taking principal submatrices in (∗)(*) we have s>ρ(B~)s > \rho(\widetilde{B}) with the same ss.

A symmetric MM-matrix is known as a Stieltjes matrix, and such a matrix is positive definite. An example of a Stieltjes matrix is minus the second difference matrix (the tridiagonal matrix arising from a central difference discretization of a second derivative), illustrated for n=4n = 4 by

\notag A_4 = \left[\begin{array}{@{\mskip 5mu}c*{3}{@{\mskip 15mu} r}@{\mskip 5mu}} 2 & -1 & & \\ -1 & 2 & -1 & \\ & -1 & 2 & -1 \\ & & -1 & 2 \end{array}\right], \quad A_4^{-1} = \begin{bmatrix} \frac{4}{5} & \frac{3}{5} & \frac{2}{5} & \frac{1}{5}\\[3pt] \frac{3}{5} & \frac{6}{5} & \frac{4}{5} & \frac{2}{5}\\[3pt] \frac{2}{5} & \frac{4}{5} & \frac{6}{5} & \frac{3}{5}\\[3pt] \frac{1}{5} & \frac{2}{5} & \frac{3}{5} & \frac{4}{5} \end{bmatrix}.

LU Factorization

Since the leading principal submatrices of an MM-matrix AA have positive determinant it follows that AA has an LU factorization with UU having positive diagonal elements. However, more is true, as the next result shows.

Theorem 2.

An MM-matrix AA has an LU factorization A=LUA = LU in which LL and UU are MM-matrices.

Proof. We can write

\notag A = \begin{array}[b]{@{\mskip27mu}c@{\mskip-20mu}c@{\mskip-10mu}c@{}} \scriptstyle 1 & \scriptstyle n-1 & \\ \multicolumn{2}{c}{ \left[\begin{array}{c@{~}c@{~}} \alpha & b^T \\ c^T & E \\ \end{array}\right]} & \mskip-14mu\ \begin{array}{c} \scriptstyle 1 \\ \scriptstyle n-1 \end{array} \end{array}, \quad \alpha > 0, \quad b\le 0, \quad c \le 0.

The first stage of LU factorization is

A=[αbTcE]=[10α−1cI][αbT0S]=L1U1,S=E−α−1c bT,\notag A = \begin{bmatrix} \alpha & b^T \\ c & E \end{bmatrix} = \begin{bmatrix} 1 & 0 \\ \alpha^{-1}c & I \end{bmatrix} \begin{bmatrix} \alpha & b^T \\ 0 & S \end{bmatrix} = L_1U_1, \quad S = E - \alpha^{-1} c\mskip1mu b^T,

where SS is the Schur complement of α\alpha in AA. The first column of L1L_1 and the first row of U1U_1 are of the form required for a triangular MM-matrix. We have

A−1=U1−1L1−1=[α−1−α−1bTS−10S−1][10−α−1cI]=[×××S−1].\notag A^{-1} = U_1^{-1}L_1^{-1} = \begin{bmatrix} \alpha^{-1} & -\alpha^{-1}b^TS^{-1} \\ 0 & S^{-1} \end{bmatrix} \begin{bmatrix} 1 & 0 \\ -\alpha^{-1}c & I \end{bmatrix} = \begin{bmatrix} \times & \times \\ \times & S^{-1} \end{bmatrix}.

Since A−1≥0A^{-1} \ge 0 it follows that S−1≥0S^{-1} \ge 0. It is easy to see that S∈ZnS\in Z_n, and hence Theorem 11 shows that SS is an MM-matrix. The result follows by induction.

The question now arises of what can be said about the numerical stability of LU factorization of an MM-matrix. To answer it we use another characterization of MM-matrices, that DADA is strictly diagonally dominant by columns for some diagonal matrix D=diag(di)D = \mathrm{diag}(d_i) with di>0d_i>0 for all ii, that is,

dj∣ajj∣>∑i≠jdi∣aij∣,j=1 ⁣:n.\notag d_j|a_{jj}| > \sum_{i\ne j} d_i |a_{ij}|, \quad j=1\colon n.

(This condition can also be written as dTA>0d^TA > 0 because of the sign pattern of AA.) Matrices that are diagonally dominant by columns have the properties that an LU factorization without pivoting exists, the growth factor ρn≤2\rho_n \le 2, and partial pivoting does not require row interchanges. The effect of row scaling on LU factorization is easy to see:

A=LU  ⇒  DA=DLD−1⋅DU≡L~U~,\notag A = LU \;\Rightarrow\; DA = DLD^{-1} \cdot DU \equiv \widetilde{L} \widetilde{U},

where L~\widetilde{L} is unit lower triangular, so that L~\widetilde{L} and U~\widetilde{U} are the LU factors of DADA. It is easy to see that the growth factor bound of 22 for a matrix diagonally dominant by columns translates into the bound

ρn≤2 max⁡idimin⁡idi(‡)\notag \rho_n \le 2\mskip1mu\displaystyle\frac{\max_i d_i}{\min_i d_i} \qquad(\ddagger)

for an MM-matrix, which was obtained by Funderlic, Neumann, and Plemmons (1982). Unfortunately, this bound can be large. Consider the matrix

A=[ϵ0−1−11−1001]∈Z3,0<ϵ<1.\notag A = \begin{bmatrix} \epsilon& 0& -1\\ -1& 1& -1\\ 0& 0& 1 \end{bmatrix} \in Z_3, \quad 0 < \epsilon < 1.

We have

A−1=[1ϵ01ϵ1ϵ11+ϵϵ001]≥0,\notag A^{-1} = \begin{bmatrix} \displaystyle\frac{1}{\epsilon}& 0& \displaystyle\frac{1}{\epsilon}\\[12pt] \displaystyle\frac{1}{\epsilon}& 1 & \displaystyle\frac{1 + \epsilon}{\epsilon}\\[12pt] 0& 0& 1 \end{bmatrix} \ge 0,

so AA is an MM-matrix. The (2,3)(2,3) element of the LU factor UU of AA is −1−1/ϵ-1 - 1/\epsilon, which means that

ρ3≥1ϵ+1,\notag \rho_3 \ge \displaystyle\frac{1}{\epsilon} + 1,

and this lower bound can be arbitrarily large. One can verify experimentally that numerical instability is possible when ρ3\rho_3 is large, in that the computed LU factors have a large relative residual. We conclude that pivoting is necessary for numerical stability in LU factorization of MM-matrices.

Stationery Iterative Methods

A stationery iterative method for solving a linear system Ax=bAx = b is based on a splitting A=M−NA = M - N with MM nonsingular, and has the form Mxk+1=Nxk+bMx_{k+1} = Nx_k + b. This iteration converges for all starting vectors x0x_0 if ρ(M−1N)<1\rho(M^{-1}N) < 1. Much interest has focused on regular splittings, which are defined as ones for which M−1≥0M^{-1}\ge 0 and N≥0N \ge 0. An MM-matrix has the important property that ρ(M−1N)<1\rho(M^{-1}N) < 1 for every regular splitting, and it follows that the Jacobi iteration, the Gauss-Seidel iteration, and the successive overrelaxation (SOR) iteration (with 0<ω≤10 < \omega \le 1) are all convergent for MM-matrices.

Matrix Square Root

The principal square root A1/2A^{1/2} of an MM-matrix AA is an MM-matrix, and it is the unique such square root. An expression for A1/2A^{1/2} follows from (∗)(*):

A1/2=s1/2(I−C)1/2(C=s−1B, ρ(C)<1),=s1/2∑j=0∞(12j)(−C)j.\notag \begin{aligned} A^{1/2} &= s^{1/2}(I - C)^{1/2} \quad (C = s^{-1}B, ~\rho(C) < 1),\\ &= s^{1/2} \sum_{j=0}^{\infty} {\frac{1}{2} \choose j} (-C)^j. \end{aligned}

This expression does not necessarily provide the best way to compute A1/2A^{1/2}.

Singular M-Matrices

The theory of MM-matrices extends to the case where the condition on ss is relaxed to s≥ρ(B)s \ge \rho(B) in (∗)(*), though the theory is more complicated and extra conditions such as irreducibility are needed for some results. Singular MM-matrices occur in Markov chains (Berman and Plemmons, 1994, Chapter 8), for example. Let PP be the transition matrix of a Markov chain. Then PP is stochastic, that is, nonnegative with unit row sums, so Pe=ePe = e. A nonnegative vector yy with yTe=1y^Te = 1 such that yTP=yTy^T P = y^T is called a stationary distribution vector and is of interest for describing the properties of the Markov chain. To compute yy we can solve the singular system Ay=(I−PT)y=0Ay = (I - P^T)y = 0. Clearly, A∈ZnA\in Z_n and ρ(P)=1\rho(P) = 1, so AA is a singular MM-matrix.

H-Matrices

A more general concept is that of HH-matrix: A∈Rn×nA\in\mathbb{R}^{n \times n} is an HH-matrix if the comparison matrix M(A)M(A) is an MM-matrix. Many results for MM-matrices extend to HH-matrices. For example, for an HH-matrix with positive diagonal elements the principal square root exists and is the unique square root that is an HH-matrix with positive diagonal elements. Also, the growth factor bound (‡)(\ddagger) holds for any HH-matrix for which DADA is diagonally dominant by columns.

References

This is a minimal set of references, which contain further useful references within.

This article is part of the “What Is” series, available from https://nhigham.com/category/what-is and in PDF form from the GitHub repository https://github.com/higham/what-is.