Post · 17 min read· pp. 765–772

What Is a Rank-Revealing Factorization?

In many applications a matrix A∈Rm×nA\in\mathbb{R}^{m\times n} has less than full rank, that is, r=rank(A)<min⁡(m,n)r = \mathrm{rank}(A) < \min(m,n). Sometimes, rr is known, and a full-rank factorization A=GHA = GH with G∈Rm×rG\in\mathbb{R}^{m \times r} and H∈Rr×nH\in\mathbb{R}^{r \times n}, both of rank rr, is given—especially when r=1r = 1 or r=2r = 2. Often, though, the rank rr is not known. Moreover, rather than being of exact rank rr, AA is merely close to a rank rr matrix because of errors from various possible sources.

What is usually wanted is a factorization that displays how close AA is to having particular ranks and provides an approximation to the range space of a lower rank matrix. The ultimate tool for providing this information is the singular value decomposition (SVD)

A=UΣVT,Σ=diag(σ1,…,σp)∈Rm×n,\notag A = U\Sigma V^T, \quad \Sigma = \mathrm{diag}(\sigma_1,\dots, \sigma_p)\in\mathbb{R}^{m\times n},

where p=min⁡(m,n)p = \min(m,n), σ1≥σ2≥⋯≥σp≥0\sigma_1\ge \sigma_2\ge \cdots \ge \sigma_p \ge 0, and U∈Rm×mU\in\mathbb{R}^{m\times m} and V∈Rn×nV\in\mathbb{R}^{n\times n} are orthogonal. The Eckart–Young theorem says that

min⁡rank(B)=k∥A−B∥q={σk+1,q=2,(∑i=k+1rσi2)1/2,q=F,\notag \min_{\mathrm{rank}(B) = k} \|A-B\|_q = \begin{cases} \sigma_{k+1}, & q = 2, \\ \Bigl(\sum_{i=k+1}^r \sigma_i^2\Bigr)^{1/2}, & q = F, \end{cases}

and that the minimum is attained at

Ak=UΣkVT,Σk=diag(σ1,…,σk,0,…,0),\notag A_k = U \Sigma_k V^T, \quad \Sigma_k = \mathrm{diag}(\sigma_1, \dots, \sigma_k, 0, \dots, 0),

so AkA_k is the best rank-kk approximation to AA in both the 22-norm and the Frobenius norm.

Although the SVD is expensive to compute, it may not be significantly more expensive than alternative factorizations. However, the SVD is expensive to update when a row or column is added to or removed from the matrix, as happens repeatedly in signal processing applications.

Many different definitions of a rank-revealing factorization have been given, and they usually depend on a particular matrix factorization. We will use the following general definition.

Definition 1. A rank-revealing factorization (RRF) of A∈Rm×nA\in\mathbb{R}^{m\times n} is a factorization

A=XDYT,X∈Rm×p,D∈Rp×p,Y∈Rn×p,\notag A = XDY^T, \quad X\in\mathbb{R}^{m\times p}, \quad D\in\mathbb{R}^{p\times p}, \quad Y\in\mathbb{R}^{n\times p},

where p≤min⁡(m,n)p \le \min(m,n), DD is diagonal and nonsingular, and XX and YY are well conditioned.

An RRF concentrates the rank deficiency and ill condition of AA into the diagonal matrix DD. An RRF clearly exists, because the SVD is one, with XX and YY having orthonormal columns and hence being perfectly conditioned. Justification for this definition comes from a version of Ostrowski’s theorem, which shows that

σi(A)=θiσi(D),i=1 ⁣:min⁡(m,n),(1)\notag \sigma_i(A) = \theta_i \sigma_i(D), \quad i = 1\colon \min(m,n), \qquad (1)

where σp(X)σp(Y)≤θi≤σ1(X)σ1(Y)\sigma_p(X)\sigma_p(Y) \le \theta_i \le \sigma_1(X) \sigma_1(Y). Hence as long as XX and YY are well conditioned, the singular values are good order of magnitude approximations to those of AA up a scale factor.

Without loss of generality we can assume that

D=diag(di),∣d1∣≥∣d2∣≥⋯≥∣dp∣\notag D = \mathrm{diag}(d_i), \quad |d_1| \ge |d_2| \ge \cdots \ge |d_p|

(since XDYT=XP⋅PTDP⋅PTYTXDY^T = XP\cdot P^TDP \cdot P^T Y^T for any permutation matrix PP and the second expression is another RRF). For A~k=Xdiag(d1,…,dk,0,…,0)YT\widetilde{A}_k = X \mathrm{diag}(d_1,\dots,d_k,0,\dots,0)Y^T we have

∥A−A~k∥≤∥X∥∥Y∥∥diag(0,…,0,dk+1,…,dp)∥,\notag \|A - \widetilde{A}_k\| \le \|X\| \|Y\| \|\mathrm{diag}(0,\dots,0,d_{k+1},\dots,d_p)\|,

so AA is within distance of order ∣dk+1∣|d_{k+1}| from the rank-kk matrix A~k\widetilde{A}_k, which is the same order as the distance to the nearest rank-kk matrix if ∣dk+1∣≈σk+1|d_{k+1}| \approx \sigma_{k+1}.

Definition 2 is a strong requirement, since it requires all the singular values of AA to be well approximated by the (scaled) diagonal elements of DD. We will investigate below how it compares with another definition of RRF.

Numerical Rank

An RRF helps to determine the numerical rank, which we now define.

Definition 2. For a given ϵ>0\epsilon > 0 the numerical rank of AA is the largest integer kk such that σk>ϵ\sigma_k > \epsilon.

By the Eckart–Young theorem, the numerical rank is the smallest rank attained over all A+EA+E with ∥E∥2≤ϵ\|E\|_2 \le \epsilon. For the numerical rank to be meaningful in the sense that it is unchanged if ϵ\epsilon is perturbed slightly, we need ϵ\epsilon not to be too close to σk\sigma_k or σk+1\sigma_{k+1}, which means that there must be a significant gap between these two singular values.

QR Factorization

One might attempt to compute an RRF by using a QR factorization A=QRA = QR, where Q∈Rm×nQ\in\mathbb{R}^{m\times n} has orthonormal columns, R∈Rn×nR\in\mathbb{R}^{n\times n} is upper triangular, and we assume that m≥nm\ge n. In Definition 1, we can take

X=I,D=diag(R),YT=D−1R.(∗)\notag X = I, \quad D = \mathrm{diag}(R), \quad Y^T = D^{-1}R. \qquad (*)

However, it is easy to see that QR factorization in its basic form is flawed as a means for computing an RRF. Consider the matrix

A=[0100001000010000],\notag A = \begin{bmatrix} 0 & 1 & 0 &0\\ 0 & 0 & 1 &0 \\ 0 & 0 & 0 &1\\ 0 & 0 & 0 &0 \end{bmatrix},

which is a Jordan block with zero eigenvalue. This matrix is its own QR factorization (R=AR = A), and the prescription (∗)(*) gives D=0D = 0, so A≠XDYTA \ne XDY^T. The essential problem is that the diagonal of RR has no connection with the nonzero singular values of AA. What is needed are column permutations: AΠ=diag(1,1,1,0)A\Pi = \mathrm{diag}(1,1,1,0) for the permutation matrix Π\Pi that reorders [a1,a2,a3,a4][a_1,a_2,a_3,a_4] to [a2,a3,a4,a1][a_2,a_3,a_4,a_1], and this is a perfect RRF with X=Y=IX = Y = I.

For a less trivial example, consider the matrix

A=[11θ01−121101+θ−11−12−1],θ=10−8.(†)\notag A = \left[\begin{array}{rrrr} 1 & 1 &\theta &0\\ 1 & -1 & 2 &1 \\ 1 & 0 &1+\theta &-1\\ 1 &-1 & 2 &-1 \end{array}\right], \quad \theta = 10^{-8}. \qquad (\dagger)

Computing the QR factorization we obtain

text
R =
  -2.0000e+00   5.0000e-01  -2.5000e+00   5.0000e-01
            0   1.6583e+00  -1.6583e+00  -1.5076e-01
            0            0  -4.2640e-09   8.5280e-01
            0            0            0  -1.4142e+00

The (3,3)(3,3) element tells us that AA is within distance about 4×10−94\times 10^{-9} of being rank deficient and so has a singular value bounded above by this quantity, but it does not provide any information about the next larger singular value. Moreover, in (∗)(*), κ2(Y)\kappa_2(Y) is of order 101610^{16} for this factorization. We need any small diagonal elements to be in the bottom right-hand corner, and to achieve this we need to introduce column permutations to move the “dependent columns” to the end.

QR Factorization With Column Pivoting

A common method for computing an RRF is QR factorization with column pivoting, which for a matrix A∈Rm×nA\in\mathbb{R}^{m\times n} with m≥nm\ge n computes a factorization AΠ=QRA\Pi = QR, where Π\Pi is a permutation matrix, Q∈Rm×nQ\in\mathbb{R}^{m\times n} has orthonormal columns, and R∈Rn×nR\in\mathbb{R}^{n\times n} is upper triangular and satisfies the inequalities

∣rkk∣2≥∑i=kj∣rij∣2,j=k+1 ⁣:n,k=1 ⁣:n.(2)\notag |r_{kk}|^2 \ge \displaystyle\sum_{i=k}^j |r_{ij}|^2, \quad j=k+1\colon n, \quad k=1\colon n. \qquad (2)

In particular,

∣r11∣≥∣r22∣≥⋯≥∣rnn∣.(3)\notag |r_{11}| \ge |r_{22}| \ge \cdots \ge |r_{nn}|. \qquad(3)

If ∣rkk∣≥ϵ≥∣rk+1,k+1∣|r_{kk}| \ge \epsilon \ge |r_{k+1,k+1}| with ϵ>0\epsilon > 0 then we can write

\notag R = \begin{array}[b]{@{\mskip33mu}c@{\mskip-16mu}c@{\mskip-10mu}c@{}} \scriptstyle k & \scriptstyle n-k & \\ \multicolumn{2}{c}{ \left[\begin{array}{c@{~}c@{~}} R_{11}& R_{12} \\ 0 & R_{22} \\ \end{array}\right]} & \mskip-12mu\ \begin{array}{c} \scriptstyle k \\ \scriptstyle n-k \end{array} \end{array}, \qquad(4)

with

∥R22∥2≤∥R22∥F≤2−1/2(n−k+1)ϵ.\notag \|R_{22}\|_2 \le \|R_{22}\|_F \le 2^{-1/2}(n-k+1)\epsilon.

Hence RR is within 22-norm distance 2−1/2(n−k+1)ϵ2^{-1/2}(n-k+1)\epsilon of the rank-kk matrix [R11R1200]\left[\begin{smallmatrix} R_{11} & R_{12} \\ 0 & 0 \end{smallmatrix}\right]. Note that if Q=[Q1 Q2]Q = [Q_1~Q_2] is partitioned conformally with QQ in (4) then

AΠ=[Q1Q2][R11R120R22]=Q1[R11R12]+[0Q2R22],\notag A\Pi = \begin{bmatrix} Q_1 & Q_2 \end{bmatrix} \begin{bmatrix} R_{11} & R_{12} \\ 0 & R_{22} \\ \end{bmatrix} = Q_1 \begin{bmatrix} R_{11} & R_{12} \end{bmatrix} + \begin{bmatrix} 0 & Q_2 R_{22} \end{bmatrix},

so ∥AΠ−Q1[R11 R12]∥2≤∥R22∥2\| A\Pi - Q_1 [R_{11}~R_{12}]\|_2 \le \|R_{22}\|_2, which means that Q1Q_1 provides an O(ϵ)O(\epsilon) approximation to the range of AA.

To assess how good an RRF this factorization is (with p=np = n) we write it as

A=QRΠT=QDYT,D=diag(rii),YT=D−1RΠT.(#)\notag A = QR\Pi^T = Q D Y^T, \quad D = \mathrm{diag}(r_{ii}), \quad Y^T = D^{-1}R \Pi^T. \quad (\#)

Applying (1) gives

σi(A)=θiσi(D),i=1 ⁣:p,(5)\notag \sigma_i(A) = \theta_i \sigma_i(D), \quad i = 1\colon p, \qquad (5)

where σn(Y)≤θi≤σ1(Y)\sigma_n(Y)\le \theta_i \le \sigma_1(Y), since QQ has orthonormal columns and so has unit singular values. Now D−1RD^{-1}R has unit diagonal and, in view of (2), its off-diagonal elements are bounded by 11. Therefore σ1(Y)=∥Y∥2≤∥Y∥F≤(n(n+1)/2)1/2\sigma_1(Y) = \|Y\|_2 \le \|Y\|_F \le (n(n+1)/2)^{1/2}. On the other hand, σp(Y)−1≤2n−1\sigma_p(Y)^{-1} \le 2^{n-1} by Theorem 1 in Bounds for the Norm of the Inverse of a Triangular Matrix. Therefore

21−n≤θi≤(n(n+1)/2)1/2.\notag 2^{1-n} \le \theta_i \le (n(n+1)/2)^{1/2}.

The lower bound is an approximate equality for small τ\tau for the triangular matrix

Rn(θ)=diag(1,s,…,sn−1)[1−c−c…−c1−c…−c⋱⋱⋮⋱−c1],c=cos⁡τ,s=sin⁡τ,\notag R_n(\theta) = \mathrm{diag}(1,s,\dots,s^{n-1}) \begin{bmatrix} 1 & -c & -c & \dots & -c \\ & 1 & -c & \dots & -c \\ & & \ddots &\ddots & \vdots \\ & & &\ddots & -c \\ & & & & 1 \end{bmatrix}, \quad c=\cos\tau, \quad s=\sin\tau,

devised by Kahan, which is invariant under QR factorization with column pivoting. Therefore QR factorization with column pivoting is not guaranteed to reveal the rank, and indeed it can fail to do so by an exponentially large factor.

For the matrix (†)(\dagger), QR with column pivoting reorders AA to AΠ=[a3, a4, a2, a1]A\Pi = [a_3,~a_4,~a_2,~a_1] and yields

text
R =
  -3.0000e+00   3.3333e-01   1.3333e+00  -1.6667e+00
            0  -1.6997e+00   2.6149e-01   2.6149e-01
            0            0   1.0742e+00   1.0742e+00
            0            0            0   3.6515e-09

This RR suggests a numerical rank of 33 for ϵ=10−8\epsilon = 10^{-8} (say). In fact, this factorization provides a very good RRF, as in (#)(\#) we have κ2(Y)≈3.4\kappa_2(Y) \approx 3.4.

QR Factorization with Other Pivoting Choices

Consider a QRQR factorization AΠ=QRA\Pi = QR with triangular factor partitioned as

\notag R = \begin{array}[b]{@{\mskip33mu}c@{\mskip-16mu}c@{\mskip-10mu}c@{}} \scriptstyle k & \scriptstyle n-k & \\ \multicolumn{2}{c}{ \left[\begin{array}{c@{~}c@{~}} R_{11}& R_{12} \\ 0 & R_{22} \\ \end{array}\right]} & \mskip-12mu\ \begin{array}{c} \scriptstyle k \\ \scriptstyle n-k \end{array} \end{array}. \qquad (6)

We have

σmin⁡(R11)≤σk(A),(7)σmax⁡(R22)≥σk+1(A), (8)\notag \begin{aligned} \sigma_{\min}(R_{11}) &\le \sigma_k(A), \quad \qquad (7)\\ \sigma_{\max}(R_{22}) &\ge \sigma_{k+1}(A), ~\qquad (8) \end{aligned}

where (7) is from singular value interlacing inequalities and (8) follows from the Eckart-Young theorem, since setting R22R_{22} to zero gives a rank-kk matrix. Suppose AA has numerical rank kk and σk+1≪σk\sigma_{k+1} \ll \sigma_k. We would like to be able to detect this situation from RR, so clearly we need

σmin⁡(R11)≈σk(A),σmax⁡(R22)≈σk+1(A).(9)\notag \sigma_{\min}(R_{11}) \approx \sigma_k(A), \quad \sigma_{\max}(R_{22}) \approx \sigma_{k+1}(A). \qquad (9)

In view of the inequalities (7) and (8) this means that we wish to choose Π\Pi maximize σmin⁡(R11)\sigma_{\min}(R_{11}) and minimize σmax⁡(R22)\sigma_{\max}(R_{22}).

Some theoretical results are available on the existence of such QR factorizations. First, we give a result that shows that for k=n−1k = n-1 the approximations in (9) can hold to within a factor n1/2n^{1/2}.

Theorem 1. For A∈Rm×nA\in\mathbb{R}^{m\times n} with m≥nm\ge n there exists a permutation Π\Pi such that AA has the QR factorization AΠ=QRA\Pi = QR with ∣rnn∣≤n1/2σn(A)|r_{nn}| \le n^{1/2}\sigma_n(A) and σmin⁡(R11)≥n−1/2σn−1(A)\sigma_{\min}(R_{11}) \ge n^{-1/2} \sigma_{n-1}(A), where R11=R(1 ⁣:n−1,1 ⁣:n−1)R_{11} = R(1\colon n-1, 1\colon n-1).

Proof. Let Av=σnuAv = \sigma_n u, with ∥v∥2=∥u∥2=1\|v\|_2 = \|u\|_2 = 1 and let ΠT\Pi^T be such that v~=ΠTv\widetilde{v} = \Pi^Tv satisfies ∣v~n∣=∥v~∥∞|\widetilde{v}_n| = \|\widetilde{v}\|_{\infty}. Then if AΠ=QRA\Pi = QR is a QR factorization,

σn=∥σnu∥2=∥Av∥2=∥QRΠTv∥2=∥R v~∥2≥∣rnnv~n∣≥n−1/2∣rnn∣,\notag \begin{aligned} \sigma_n = \| \sigma_n u \|_2 = \| Av \|_2 = \| QR\Pi^Tv \|_2 = \| R\mskip1mu \widetilde{v} \|_2 \ge | r_{nn} \widetilde{v}_n | \ge n^{-1/2} | r_{nn} |, \end{aligned}

since ∥v~∥2=1\|\widetilde{v}\|_2 = 1, which yields the result.

Next, we write Π=[Π1 π]\Pi = [\Pi_1~\pi], where π∈Rn\pi\in\mathbb{R}^n, and partition

R=[R11R120R22]\notag R = \begin{bmatrix} R_{11} & R_{12} \\ 0 & R_{22} \\ \end{bmatrix}

with R11∈R(n−1)×(n−1)R_{11}\in\mathbb{R}^{(n-1)\times (n-1)}. Then

AΠ1=Q[R110]A\Pi_1 = Q \begin{bmatrix} R_{11} \\ 0 \end{bmatrix}

implies σmin⁡(AΠ1)=σmin⁡(R11)\sigma_{\min}(A\Pi_1) = \sigma_{\min}(R_{11}). On the other hand, if A=UΣVTA = U\Sigma V^T is an SVD with U∈Rm×nU\in\mathbb{R}^{m\times n}, Σ=diag(D1,σn)∈Rn×n\Sigma = \mathrm{diag}(D_1,\sigma_n)\in\mathbb{R}^{n\times n}, and V=[V1 v]V = [V_1~v] then

AΠ1=UΣVTΠ1=U[D100σn][V1TvT]Π1=U[D1V1TσnvT]Π1,\notag A\Pi_1 = U\Sigma V^T \Pi_1 = U \begin{bmatrix} D_1 & 0 \\ 0 & \sigma_n \\ \end{bmatrix} \begin{bmatrix} V_1^T \\ v^T \end{bmatrix} \Pi_1 = U \begin{bmatrix} D_1V_1^T \\ \sigma_n v^T \end{bmatrix} \Pi_1,

so

σmin⁡(AΠ1)=σmin⁡([D1V1TσnvT]Π1)≥σmin⁡(D1VTΠ1)≥σn−1σmin⁡(VTΠ1).\notag \sigma_{\min}(A\Pi_1) = \sigma_{\min}\left( \begin{bmatrix} D_1V_1^T \\ \sigma_n v^T \end{bmatrix} \Pi_1 \right) \ge \sigma_{\min}(D_1V^T\Pi_1) \ge \sigma_{n-1}\sigma_{\min}(V^T\Pi_1).

Finally, we note that we can partition the orthogonal matrix VTΠ1V^T\Pi_1 as

VTΠ=[V1TΠ1V1TπvTΠ1vTπ],\notag V^T\Pi = \begin{bmatrix} V_1^T\Pi_1 & V_1^T\pi \\ v^T\Pi_1 & v^T\pi \end{bmatrix},

and the CS decomposition implies that

σmin⁡(V1TΠ1)=σmin⁡(vTπ)=∣vTπ∣=∣v~n∣≥n−1/2.\notag \sigma_{\min}(V_1^T\Pi_1) = \sigma_{\min}(v^T\pi) = |v^T\pi| = |\widetilde{v}_n| \ge n^{-1/2}.

Hence σmin⁡(R11)≥n−1/2σn−1\sigma_{\min}(R_{11}) \ge n^{-1/2} \sigma_{n-1}, as required.  □~\square

Theorem 1 is a special case of the next result of Hong and Pan (1992).

Theorem 2. For A∈Rm×nA\in\mathbb{R}^{m\times n} with m≥nm\ge n and any kk there exists a permutation matrix Π\Pi such that AA has the QR factorization AΠ=QRA\Pi = QR where, with RR partitioned as in (6),

σmax⁡(R22)≤f(k,n)σk+1(A),σmin⁡(R11)≥f(k,n)−1σk(A),\notag \sigma_{\max}(R_{22}) \le f(k,n) \sigma_{k+1}(A), \quad \sigma_{\min}(R_{11}) \ge f(k,n)^{-1} \sigma_k(A),

where f(k,n)=(k(n−k)+min⁡(k,n−k))1/2f(k,n) = (k(n-k) + \min(k,n-k))^{1/2}.

The proof of Theorem 2 is constructive and chooses Π\Pi to move a submatrix of maximal determinant of V2V_2 to the bottom of V2V_2, where V2V_2 comprises the last n−kn-k columns of the matrix of right singular vectors.

Theorem 2 shows the existence of an RRF up to the factor f(k,n)≤(n+1)/2f(k,n) \le (n+1)/2, but it does not provide an efficient algorithm for computing one.

Much work has been done on algorithms that choose the permutation matrix Π\Pi in a different way to column pivoting or post-process a QR factorization with column pivoting, with the aim of satisfying (9) at reasonable cost. Typically, these algorithms involve estimating singular values and singular vectors. We are not aware of any algorithm that is guaranteed to satisfy (9) and requires only O(n3)O(n^3) flops.

UTV Decomposition

By applying Householder transformations on the right, a QR factorization with column pivoting can be turned into a complete orthogonal decomposition of A∈Rm×nA\in\mathbb{R}^{m\times n}, which has the form

A=U[T000]VT,(10)\notag A = U \begin{bmatrix} T & 0 \\ 0 & 0 \end{bmatrix} V^T, \qquad (10)

where T∈Rr×rT\in\mathbb{R}^{r \times r} is upper triangular and U∈Rm×mU\in\mathbb{R}^{m\times m} and V∈Rn×nV\in\mathbb{R}^{n\times n} are orthogonal. Stewart (1998) calls (6) with TT upper triangular or lower triangular a UTV decomposition and he defines a rank-revealing UTV decomposition of numerical rank rr by

A=U[TF0G]VT,T∈Rr×r,σr(T)≈σr(A),∥F∥F2+∥G∥F2≈σr+12+⋯+σn2.\notag \begin{aligned} A &= U \begin{bmatrix} T & F \\ 0 & G \end{bmatrix} V^T, \qquad T\in\mathbb{R}^{r \times r}, \\ & \sigma_r(T) \approx \sigma_r(A), \quad \|F\|_F^2 + \|G\|_F^2 \approx \sigma_{r+1}^2 + \cdots + \sigma_n^2. \end{aligned}

The UTV decomposition is easy to update (when a row is added) and downdate (when a row is removed) using Givens rotations and it is suitable for parallel implementation. Initial determination of the UTV decomposition can be done by applying the updating algorithm as the rows are brought in one at a time.

LU Factorization

Instead of QR factorization we can build an RRF from an LU factorization with pivoting. For A∈Rm×nA\in\mathbb{R}^{m\times n} with m≥nm\ge n, let

Π1AΠ2=LU=[L110L12L22][U11U120U22],\notag \Pi_1 A \Pi_2 = LU = \begin{bmatrix} L_{11} & 0 \\ L_{12} & L_{22} \end{bmatrix} \begin{bmatrix} U_{11} & U_{12}\\ 0 & U_{22} \end{bmatrix},

where Π1\Pi_1 and Π2\Pi_2 are permutation matrices, LL and UU are m×nm\times n lower and n×nn\times n upper triangular, respectively, and L11L_{11} and U11U_{11} are k×kk\times k. Analogously to (7) and (8), we always have σmin⁡(L11U11)≤σk(A)\sigma_{\min}(L_{11}U_{11}) \le \sigma_k(A) and σmax⁡(L22U22)≥σk+1(A)\sigma_{\max}(L_{22}U_{22}) \ge \sigma_{k+1}(A). With a suitable pivoting strategy we can hope that σmin⁡(L11U11)≈σk(A)\sigma_{\min}(L_{11}U_{11}) \approx \sigma_k(A) and σmax⁡(L22U22)≈σk+1(A)\sigma_{\max}(L_{22}U_{22}) \approx \sigma_{k+1}(A).

A result of Pan (2000) shows that an RRF based on LU factorization always exists up to a modest factor f(k,n)f(k,n). This is analogue for LU factorization of Theorem 2.

Theorem 3 For A∈Rm×nA\in\mathbb{R}^{m\times n} with m≥nm\ge n and any kk there exist permutation matrices Π1\Pi_1 and Π2\Pi_2 such that

\notag \Pi_1 A \Pi_2 = LU = \begin{bmatrix} L_{11} & 0 \\ L_{12} & I_{m-k,n-k} \end{bmatrix} \begin{array}[b]{@{\mskip33mu}c@{\mskip-16mu}c@{\mskip-10mu}c@{}} \scriptstyle k & \scriptstyle n-k & \\ \multicolumn{2}{c}{ \left[\begin{array}{c@{~}c@{~}} U_{11}& U_{12} \\ 0 & U_{22} \\ \end{array}\right]} & \mskip-12mu\ \begin{array}{c} \scriptstyle k \\ \scriptstyle n-k \end{array} \end{array},

where L11L_{11} is unit lower triangular, U11U_{11} is upper triangular, and

σmax⁡(U22)≤f(k,n)σk+1(A),σmin⁡(L11U11)≥f(k,n)−1σk(A),\notag \sigma_{\max}(U_{22}) \le f(k,n) \sigma_{k+1}(A), \quad \sigma_{\min}(L_{11}U_{11}) \ge f(k,n)^{-1} \sigma_k(A),

where f(k,n)=k(n−k)+1f(k,n) = k(n-k) + 1.

Again the proof is constructive, but the permutations it chooses are too expensive to compute. In practice, complete pivoting often yields a good RRF.

In terms of Definition 1, an RRF has

X=Π1TLD,D=diag(uii),YT=D−1UΠ2.(‡)\notag X = \Pi_1^TL D, \quad D = \mathrm{diag}(u_{ii}), \quad Y^T = D^{-1}U\Pi_2. \qquad (\ddagger)

For the matrix (†\dagger), the UU factor for LU factorization without pivoting is

text
U =
   1.0000e+00   1.0000e+00   1.0000e-08            0
            0  -2.0000e+00   2.0000e+00   1.0000e+00
            0            0   5.0000e-09  -1.5000e+00
            0            0            0  -2.0000e+00

As for QR factorization without pivoting, an RRF is not obtained from (‡)(\ddagger).. However, with complete pivoting we obtain

text
U =
   2.0000e+00   1.0000e+00  -1.0000e+00   1.0000e+00
            0  -2.0000e+00            0            0
            0            0   1.0000e+00   1.0000e+00
            0            0            0  -5.0000e-09

which yields a very good RRF (‡)(\ddagger) with κ2(X)=3.5\kappa_2(X) = 3.5 and κ2(Y)=3.4\kappa_2(Y) = 3.4.

Notes

QR factorization with column pivoting is difficult to implement efficiently, as the criterion for choosing the pivots requires the norms of the active parts of the remaining columns and this requires a significant amount of data movement. In recent years, randomized RRF algorithms have been developed that use projections with random matrices to make pivot decisions based on small sample matrices and thereby reduce the amount of data movement. See, for example, Martinsson et al. (2019).

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.