TOPICS
Search

QR Algorithm


The QR algorithm is an iterative method for computing the eigenvalues and Schur decomposition of a square matrix. A shifted step starts with a complex matrix A_k and a shift s_k, forms the QR decomposition

 A_k-s_kI=Q_kR_k,

and reverses the factors to obtain

 A_(k+1)=R_kQ_k+s_kI=Q_k^HA_kQ_k,

where Q_k is a unitary matrix, R_k is an upper triangular matrix, I is the identity matrix, and the superscript H denotes conjugate transpose. Each step is therefore a similarity transformation and preserves the eigenvalues.

For a dense matrix, a Hessenberg decomposition first produces a Hessenberg matrix, reducing the work in subsequent iterations. The implicitly shifted form, also called Francis's algorithm (Watkins 2011), realizes the transformations without explicitly factoring each shifted matrix. Local transformations create and move a small departure from Hessenberg form down the matrix, a procedure called bulge chasing. For a real matrix, conjugate-pair shifts permit real arithmetic and produce the 1×1 and 2×2 blocks of the real Schur decomposition. Small subdiagonal entries allow completed blocks to be separated from the remaining problem, a step called deflation (Watkins 2011).

Francis (1961, 1962) and Kublanovskaya (1962) developed the QR iteration independently (Golub and Uhlig 2009). Martin et al. (1970) gave an implementation for real Hessenberg matrices. Later multishift methods combine several shifts in a sweep and use aggressive early deflation to detect converged blocks (Braman et al. 2002a, 2002b).

The basic unshifted iteration does not converge for every matrix. Shift selection and deflation are central to practical implementations. The accumulated transformation gives Schur vectors, which need not be eigenvectors; these can instead be recovered by solving the corresponding triangular or block-triangular linear systems of equations.

The implicit Q theorem states that an orthogonal matrix reducing a given real matrix to an upper Hessenberg matrix with positive subdiagonal entries is determined by its first column (Watkins 1982).


See also

Eigenvalue, Hessenberg Decomposition, QR Decomposition, Schur Decomposition

Explore with Wolfram|Alpha

References

Braman, K.; Byers, R.; and Mathias, R. "The Multishift QR Algorithm. Part I: Maintaining Well-Focused Shifts and Level 3 Performance." SIAM J. Matrix Anal. Appl. 23, 929-947, 2002a. https://doi.org/10.1137/S0895479801384573.Braman, K.; Byers, R.; and Mathias, R. "The Multishift QR Algorithm. Part II: Aggressive Early Deflation." SIAM J. Matrix Anal. Appl. 23, 948-973, 2002b. https://doi.org/10.1137/S0895479801384585.Francis, J. G. F. "The QR Transformation-Part 2." Comput. J. 4, 332-345, 1962. https://doi.org/10.1093/comjnl/4.4.332.Francis, J. G. F. "The QR Transformation: A Unitary Analogue to the LR Transformation-Part 1." Comput. J. 4, 265-271, 1961. https://doi.org/10.1093/comjnl/4.3.265.Golub, G. H. and Uhlig, F. "The QR Algorithm: 50 Years Later Its Genesis by John Francis and Vera Kublanovskaya and Subsequent Developments." IMA J. Numer. Anal. 29, 467-485, 2009. https://doi.org/10.1093/imanum/drp012.Kublanovskaya, V. N. "On Some Algorithms for the Solution of the Complete Eigenvalue Problem." USSR Comput. Math. Math. Phys. 1, 637-657, 1962. https://doi.org/10.1016/0041-5553(63)90168-X.Martin, R. S.; Peters, G.; and Wilkinson, J. H. "The QR Algorithm for Real Hessenberg Matrices." Numer. Math. 14, 219-231, 1970. https://doi.org/10.1007/BF02163331.Stewart, G. W. "A Parallel Implementation of the QR Algorithm." Parallel Comput. 5, 187-196, 1987. https://doi.org/10.1016/0167-8191(87)90017-2.Watkins, D. S. "Understanding the QR Algorithm." SIAM Rev. 24, 427-440, 1982. https://doi.org/10.1137/1024100.Watkins, D. S. "Francis's Algorithm." Amer. Math. Monthly 118, 387-403, 2011. https://doi.org/10.4169/amer.math.monthly.118.05.387.Watkins, D. S. The Matrix Eigenvalue Problem: GR and Krylov Subspace Methods. Philadelphia, PA: SIAM, 2007. https://doi.org/10.1137/1.9780898717808.

Cite this as:

Weisstein, Eric W. "QR Algorithm." From MathWorld--A Wolfram Resource. https://mathworld.wolfram.com/QRAlgorithm.html

Subject classifications