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 and a shift
,
forms the QR decomposition
and reverses the factors to obtain
where
is a unitary matrix,
is an upper triangular
matrix,
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 and
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
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).