betaFeedback

WorksMathematics

A Fast and Stable Square-Root-Free Unitary Core-Chasing Algorithm

Abstract

Symmetric and unitary matrices are among the most important classes of structured matrices admitting efficient and stable eigenvalue algorithms. Notable examples include structure-preserving variants of the QR algorithm and their square-root-free counterparts. For unitary matrices, these algorithms were historically derived from recurrence relations for orthogonal polynomials on the unit circle. A matrix-based derivation using core chasing was later given in [3]; this family of algorithms is backward stable, but the underlying symmetries needed to cast out the square roots were not identified, and the question of structured backward stability was left open. In this paper we present a matrix-based derivation of the symmetric unitary core-chasing algorithm and use it to obtain a square-root-free variant. We give a matrix-based proof of backward stability and show that strict structured backward stability is impossible in general. Open-source Fortran code and numerical experiments demonstrate that the combination of exploiting the symmetry and removing the square roots reduces computation time without degrading accuracy.

Introduction

This project began with an observation. Among all the different types of structured matrices that admit fast algorithms for computing eigenvalues, symmetric tridiagonal matrices and unitary upper Hessenberg matrices possess a number of very similar algorithms. For both classes there exist fast versions of Francis’ implicitly-shifted QR algorithm [7, 12] and fast divide-and-conquer algorithms [6, 15]. There are also Krylov methods based on short recurrences [4, 18], bisection methods [5, 20], and Jacobi methods [10, 17], though, in general, these apply to full matrices.

In the case of the QR algorithm, the similarities between these two classes of matrices run even deeper. For both classes, the recursions used in each QR iteration are not unique, leading to multiple versions of the “same” algorithm. In the case of unitary matrices, many variants have been proposed, though not all of them are stable [1, 3, 12, 13, 14, 21, 22, 23, 24]. Additionally, for both classes of matrices there exist square-root-free versions, which avoid computing the square roots needed to normalize the similarity transformations. When done correctly, removing the costly square roots gives an even more efficient algorithm for computing eigenvalues, without sacrificing backward stability. For symmetric tridiagonal matrices, the first square-root-free algorithm was proposed by Ortega and Kaiser in 1963 [19], and later improved by Pal, Walker, and Kahan in 1968 [20 Section 8.15]. Further versions were introduced and their stability analyzed in [8].

Developing square-root-free algorithms for unitary upper Hessenberg matrices is more complicated than for symmetric tridiagonal matrices, since the transforming matrices are necessarily complex. In the original unitary QR algorithm by Gragg [12], cancellation errors due to the necessary complex arithmetic made the algorithm unstable. In [13, 14], Gragg introduced an alternative formulation of his original algorithm and showed experimentally that it was stable. This same reformulation also made it possible to develop a square-root-free unitary QR algorithm, similar to the symmetric case. In [21, 22, 23], Stewart reviewed several variants of the QR algorithm for unitary upper Hessenberg matrices and gave a detailed stability analysis of a stabilized recurrence-based formulation, including square-root-free variants.

In [3], the authors unified many of the existing unitary QR algorithms by interpreting them as unitary core-chasing algorithms [2]. This point of view allows the same algorithms to be derived from a strictly matrix-based analysis, as opposed to one based on recurrence relations for orthogonal polynomials on the unit circle. It also allows one to show that, in exact arithmetic, many of the seemingly different variants of the QR algorithm for unitary upper Hessenberg-like matrices are identical. The matrix-based analysis further aids in simplifying the proof of backward stability. However, the additional symmetries needed to derive a square-root-free unitary core-chasing algorithm were not identified in [3], and the question of structured backward stability was not addressed.

This paper addresses these details, starting in § 2, where we show that the core-chasing formulation of the unitary QR algorithm contains a previously unnoticed symmetry. This symmetry is generated by the first fusion in a single-shift core-chasing step and is preserved, in exact arithmetic, by a symmetric turnover. We also discuss its relation with the QR algorithm for symmetric tridiagonal matrices.

In § 3 we study what happens when the core transformations are only nearly-unitary, as occurs when using floating-point arithmetic. In this setting, the naïve symmetric turnover formulas can be unstable, and one must use a modified formula analogous to Gragg’s stabilized recurrence. We prove that the resulting symmetric turnover is nearly exact for nearly-unitary data.

In § 4 we show how the symmetry in the turnover can be used to derive a square-root-free unitary core-chasing algorithm and how to preserve the nearly-unitariness of the core transformations without computing additional square roots.

In § 5 we analyze the floating-point implementation. We prove that both the symmetric and square-root-free turnovers are stable in a forward sense for nearly-unitary floating-point input, and then show how this forward error can be converted into a backward error result for the turnover. We also show that a strict structured backward error result is impossible in general.

Finally, in § 6 we present numerical experiments that demonstrate the practical effects of removing square roots, and compare the symmetric and square-root-free algorithms with LAPACK and the unitary core-chasing algorithm in [3].

The Unitary Core-Chasing Algorithm

The key to the efficiency of the core-chasing algorithms for unitary upper Hessenberg matrices in [3] is to first factor the matrix into a product of elementary matrices called core transformations.

Core transformations

The core transformation UiU_i is an n×nn \times n unitary matrix which is equal to the identity matrix everywhere except for the submatrix at the intersection of rows and columns ii and i+1i+1. Apart from a few exceptions, in this paper we will use core transformations that are complex Givens’ rotations, whose (i+1,i)(i+1,i) entry is real and nonnegative. In this case, the core transformation UiU_i can be parameterized by a complex number uiu_i and a nonnegative real number viv_i such that

∣ui∣2+vi2=1,\lvert u_i\rvert^2+v_i^2=1,
Ui=[⋱1ui−viviui‾1⋱].U_i= \begin{bmatrix} \ddots& & & \\ & 1 & & \\ & & u_i & -v_i \\ & & v_i & \overline{u_i} \\ & & & 1 & \ddots \end{bmatrix}.

Since working with core transformations often involves working directly with their nontrivial diagonal blocks, we will use the notation [∗][\ast] to denote any submatrices needed to perform the operations. For example, we use the notation [Ui][U_i] to signify the 2×22\times2 submatrix at the intersection of rows and columns ii and i+1i+1,

[Ui]=[ui−viviui‾].[U_i]= \begin{bmatrix} u_i & -v_i\\ v_i & \overline{u_i} \end{bmatrix}.

Similarly, we use [UiUi+1][U_iU_{i+1}] to denote the nontrivial 3×33\times3 diagonal block of the product,

[UiUi+1]=[ui−viviui‾1][1ui+1−vi+1vi+1u‾i+1].[U_iU_{i+1}]= \begin{bmatrix} u_i & -v_i & \\ v_i & \overline{u_i} & \\ & & 1 \end{bmatrix} \begin{bmatrix} 1 & & \\ & u_{i+1} & -v_{i+1}\\ & v_{i+1} & \overline{u}_{i+1} \end{bmatrix}.

A fundamental result, essential to all fast unitary QR algorithms, is that every n×nn\times n unitary upper Hessenberg matrix UU can be factored into a product of nn core transformations {Ui}i=1n\{U_i\}_{i=1}^n as

U=U1⋯Un−1Un.U=U_1\cdots U_{n-1}U_n.

The last core transformation UnU_n is equal to the identity matrix everywhere except for the last diagonal entry, and is not, strictly speaking, a rotation

Un=[⋱1un].U_n= \begin{bmatrix} \ddots& \\ & 1 & \\ & & u_n \end{bmatrix}.

This factorization implies that UU can be stored using O(n)O(n) data, equivalent to the linear storage needed for symmetric tridiagonal matrices. Gragg showed using recurrence relations that, just as in the symmetric case, this factorization can be used to perform a single step of Francis’ implicitly-shifted QR algorithm in O(n)O(n) flops. Since this factorization is the same one that is used in all core-chasing algorithms [2], it immediately admits a fast core-chasing algorithm for unitary upper Hessenberg matrices.

Unitary core-chasing

Given a complex shift ρ\rho, ∣ρ∣=1\lvert\rho\rvert=1, an iteration of the unitary core-chasing algorithm begins by constructing a core transformation Q1Q_1 such that αQ1e1=(U−ρI)e1\alpha Q_1e_1=(U-\rho I)e_1, α≠0\alpha\ne0, and performing the similarity transformation Q1∗UQ1Q_1^\ast UQ_1,

Q1∗UQ1=Q1∗U1U2⋯UnQ1=Q1∗U1U2Q1U3⋯Un.Q_1^\ast UQ_1=Q_1^\ast U_1U_2\cdots U_nQ_1=Q_1^\ast U_1U_2Q_1U_3\cdots U_n.

The last equality holds since QiUj=UjQiQ_iU_j=U_jQ_i whenever ∣i−j∣>1\lvert i-j\rvert>1.

The core transformation Q1Q_1 is constructed so that its first column is parallel to the first column of U−ρIU-\rho I. Since U−ρIU-\rho I is upper Hessenberg, its first column has only two nonzero entries, (U−ρI)e1=(U1−ρI)e1=[u1−ρ,v1,0,…]T(U-\rho I)e_1=(U_1-\rho I)e_1=[u_1-\rho,v_1,0,\ldots]^{\mathsf T}. Such a Q1Q_1 can be constructed as follows,

[Q1]=[c1−s1s1c‾1],[Q_1]= \begin{bmatrix} c_1 & -s_1\\ s_1 & \overline{c}_1 \end{bmatrix},

where c1=(u1−ρ)/n1c_1=(u_1-\rho)/n_1, s1=v1/n1s_1=v_1/n_1 and n1=∣u1−ρ∣2+v2n_1=\sqrt{\lvert u_1-\rho\rvert^2+v^2}. The first similarity transformation is then simplified by fusing the product Q1∗U1Q_1^*U_1 into a new core transformation P1P_1. After applying this first similarity transform, the matrix Q1∗UQ1Q_1^*UQ_1 is no longer upper Hessenberg due to the factor Q1Q_1 on the right,

Q1∗UQ1=P1U2Q1U3…Un.Q_1^*UQ_1=P_1U_2Q_1U_3\ldots U_n.

The rest of the iteration consists of returning this product to upper Hessenberg form through a sequence of turnovers and similarity transformations.

Given a product of three core transformations of the form AiBi+1CiA_iB_{i+1}C_i, a turnover is a refactorization into a product of three new core transformations of the form Ai+1BiCi+1A_{i+1}B_iC_{i+1} such that,

AiBi+1Ci=Ai+1BiCi+1.A_iB_{i+1}C_i=A_{i+1}B_iC_{i+1}.

When AiA_i, Bi+1B_{i+1} and CiC_i are unitary, the turnover can always be computed stably in O(1)O(1) flops by computing the QR factorization of a 3×33\times3 unitary matrix [2].

The iteration continues by computing a turnover of the product P1U2Q1P_1U_2Q_1,

P1U2Q1=Q2U^1P2,P_1U_2Q_1=Q_2\widehat{U}_1P_2,

and performing a similarity transformation with the computed matrix Q2Q_2,

Q2∗Q1∗UQ1Q2=U^1P2U3Q2U4…Un.Q_2^*Q_1^*UQ_1Q_2=\widehat{U}_1P_2U_3Q_2U_4\ldots U_n.

This process is continued a total of n−1n-1 times, resulting in the following product,

Qn−1∗…Q1∗UQ1…Qn−1=U^1…U^n−2Pn−1UnQn−1.Q_{n-1}^*\ldots Q_1^*UQ_1\ldots Q_{n-1}=\widehat{U}_1\ldots\widehat{U}_{n-2}P_{n-1}U_nQ_{n-1}.

Although UnU_n is not a rotation, the product Pn−1UnQn−1P_{n-1}U_nQ_{n-1} can be refactored via a turnover as QnU^n−1PnQ_n\widehat{U}_{n-1}P_n, where QnQ_n and PnP_n have the same form as UnU_n. Performing a similarity transformation with the matrix QnQ_n gives the following,

Qn∗…Q1∗UQ1…Qn=U^1U^2…U^n−1PnQn.Q_n^*\ldots Q_1^*UQ_1\ldots Q_n=\widehat{U}_1\widehat{U}_2\ldots\widehat{U}_{n-1}P_nQ_n.

Thus, a single iteration of the unitary core-chasing algorithm directly computes the factorization for the resulting unitary upper Hessenberg matrix U^\widehat{U},

Q∗UQ=U^1U^2…U^n−1U^n=U^,Q^*UQ=\widehat{U}_1\widehat{U}_2\ldots\widehat{U}_{n-1}\widehat{U}_n=\widehat{U},

where Q=Q1…QnQ=Q_1\ldots Q_n and U^n=PnQn\widehat{U}_n=P_nQ_n.

Symmetry in the unitary core-chasing algorithm

The majority of the work in a single unitary core-chasing iteration comes from computing the O(n)O(n) turnovers. In the algorithm presented in [3] this is done via a QR factorization of a 3×33\times3 unitary matrix. While this can be done stably using a single square root, it requires explicitly forming most of the 3×33\times3 submatrix and multiplying these entries by two rotations. Here it will be shown that the arithmetic needed to perform a turnover can be reduced by taking advantage of a previously unknown symmetry present in the core transformations. This symmetry comes from the special form of the initial transforming matrix Q1Q_1 and is maintained throughout the entire iteration.

Recall that given a unimodular shift ρ\rho, the core transformation Q1Q_1 is constructed so that its first column is parallel to the first column of U1−ρIU_1-\rho I,

[Q1]=[c1−s1s1c1‾]=[(u1−ρ)/n1−v1/n1v1/n1(u1‾−ρ‾)/n1].[Q_1]= \begin{bmatrix} c_1 & -s_1\\ s_1 & \overline{c_1} \end{bmatrix} = \begin{bmatrix} (u_1-\rho)/n_1 & -v_1/n_1\\ v_1/n_1 & (\overline{u_1}-\overline{\rho})/n_1 \end{bmatrix}.

where n1=∣u1−ρ∣2+v12n_1 = \sqrt{\lvert u_1-\rho\rvert^2+v_1^2}. Thus, the parameters that generate Q1Q_1 are shifted and scaled versions of the parameters that generate U1U_1. The initial similarity transform requires the fusion of the product Q1∗U1Q_1^*U_1. Given that both matrices are core transformations, computing the fusion requires computing the product of their initial 2×22 \times2 diagonal blocks.

To see the structure in the initial fusion we first separate the diagonal shifts in [Q1][Q_1],

[Q1]=1n1([u1−v1v1u‾1]+[−ρ−ρ‾])[Q_1]=\frac{1}{n_1}\left(\begin{bmatrix}u_1&-v_1\\v_1&\overline{u}_1\end{bmatrix}+\begin{bmatrix}-\rho&\\&-\overline{\rho}\end{bmatrix}\right)

Then, we compute the products of the initial 2×22 \times2 diagonal blocks

[Q1∗U1]=1n1([u‾1v1−v‾1u1]+[−ρ‾−ρ])[u1−v1v1u‾1]=[−ρ‾−ρ]1n1([−ρ−ρ‾]+[u1−v1v1u‾1])=[−ρ‾−ρ][c1−s1s1c‾1]=[−ρ‾c1ρ‾s1−ρs1−ρc‾1]=[Q~1].(1)\begin{aligned} [Q_1^*U_1]&=\frac{1}{n_1}\left(\begin{bmatrix}\overline{u}_1&v_1\\-\overline{v}_1&u_1\end{bmatrix}+\begin{bmatrix}-\overline{\rho}&\\&-\rho\end{bmatrix}\right)\begin{bmatrix}u_1&-v_1\\v_1&\overline{u}_1\end{bmatrix}\\ &=\begin{bmatrix}-\overline{\rho}&\\&-\rho\end{bmatrix}\frac{1}{n_1}\left(\begin{bmatrix}-\rho&\\&-\overline{\rho}\end{bmatrix}+\begin{bmatrix}u_1&-v_1\\v_1&\overline{u}_1\end{bmatrix}\right)\\ &=\begin{bmatrix}-\overline{\rho}&\\&-\rho\end{bmatrix}\begin{bmatrix}c_1&-s_1\\s_1&\overline{c}_1\end{bmatrix}=\begin{bmatrix}-\overline{\rho}c_1&\overline{\rho}s_1\\-\rho s_1&-\rho\overline{c}_1\end{bmatrix}=[\widetilde{Q}_1]. \tag*{(1)} \end{aligned}

Now we can rewrite the first similarity transformation and fusion as follows,

Q1∗UQ1=Q~1U2Q1U3…Un.Q_1^*UQ_1=\widetilde{Q}_1U_2Q_1U_3\ldots U_n.

The matrix Q~1\widetilde{Q}_1 is still a core transformation but the off-diagonal entries of [Q~1][\widetilde{Q}_1] are no longer strictly real. However, their phase is −ρ-\rho and the connection to Q1Q_1 remains via the parameters c1c_1 and s1s_1.

Symmetry in the turnover

In order for this symmetry to be useful it must be preserved by the turnover. If that were the case, there would exist core transformations Q2Q_2, U~1\widetilde{U}_1 and Q~2\widetilde{Q}_2 such that

Q~1U2Q1=Q2U~1Q~2.\widetilde{Q}_1U_2Q_1=Q_2\widetilde{U}_1\widetilde{Q}_2.

Then, applying the similarity transformation defined by Q2Q_2 would give the next step in the iteration,

Q2∗Q~1∗UQ1Q2=U~1Q~2U3Q2U4…Un.Q_2^*\widetilde{Q}_1^*UQ_1Q_2=\widetilde{U}_1\widetilde{Q}_2U_3Q_2U_4\ldots U_n.

and the product Q~2U3Q2\widetilde{Q}_2U_3Q_2 would have the same structure as the previous turnover, thus preserving the symmetry.

Unfortunately, the existence of the shift ρ\rho in Q~1\widetilde{Q}_1 breaks the symmetry just enough to require the introduction of an extra parameter. Theorem 2.1 shows that with the addition of this new parameter, the symmetry in the turnover is preserved throughout the entire core-chasing step.

Theorem 2.1 (Symmetric Turnover). Given unimodular complex numbers ρ\rho and γ\gamma, complex numbers uu and cc, and nonnegative real numbers vv and ss such that

∣u∣2+v2=1|u|^2+v^2=1 and ∣c∣2+s2=1|c|^2+s^2=1, define the following,

p=−ρ(c+γ‾u),n=∣p∣2+v2,\begin{aligned} p&=-\rho(c+\overline{\gamma}u),\\ n&=\sqrt{|p|^2+v^2}, \end{aligned}

if n≠0n\ne0:

c^=p/n,s^=v/n,u^=ρ‾(s2u−γc2),v^=sn\begin{aligned} \widehat{c}&=p/n,\\ \widehat{s}&=v/n,\\ \widehat{u}&=\overline{\rho}(s^2u-\gamma c^2),\\ \widehat{v}&=sn \end{aligned}

else:

c^=0,s^=1,u^=ρ‾u,v^=0,\begin{aligned} \widehat{c}&=0,\\ \widehat{s}&=1,\\ \widehat{u}&=\overline{\rho}u,\\ \widehat{v}&=0, \end{aligned}
γ^=−ρ‾γ.\widehat{\gamma}=-\overline{\rho}\gamma.

Then, the following products are equivalent,

[−ρ‾γcρ‾s−ρ‾s−ρ‾γ‾c1][1u−vvu‾][c−ssc‾1]=[1c^−s^s^c^][u^−v^v^u^1][1−ρ‾γ‾cρ‾s‾−ρ‾s−ρ‾γ‾c].\begin{bmatrix} -\overline{\rho}\gamma c&\overline{\rho}s\\ -\overline{\rho}s&-\overline{\rho}\overline{\gamma}c\\ 1& \end{bmatrix} \begin{bmatrix} 1&&\\ u&-v\\ v&\overline{u} \end{bmatrix} \begin{bmatrix} c&-s\\ s&\overline{c}\\ 1&& \end{bmatrix} = \begin{bmatrix} 1&&\\ \widehat{c}&-\widehat{s}\\ \widehat{s}&\widehat{c} \end{bmatrix} \begin{bmatrix} \widehat{u}&-\widehat{v}\\ \widehat{v}&\widehat{u}\\ 1&& \end{bmatrix} \begin{bmatrix} 1&&\\ -\overline{\rho}\overline{\gamma}c&\overline{\rho}\overline{s}\\ -\overline{\rho}s&-\overline{\rho}\overline{\gamma}c \end{bmatrix}.

Proof. Define HH and H^\widehat{H} as follows

H=[−ρ‾γcρ‾s−ρ‾s−ρ‾γ‾c1][1u−vvu‾][c−ssc‾1]=[ρ‾(s2u−γc2)ρ‾γ(c+γ‾u)s−ρ‾vs−ρ‾(c+γ‾u)sρ(s2−γ‾c2u)ργ‾cvsvc‾u‾].H= \begin{bmatrix} -\overline{\rho}\gamma c&\overline{\rho}s\\ -\overline{\rho}s&-\overline{\rho}\overline{\gamma}c\\ 1&& \end{bmatrix} \begin{bmatrix} 1&&\\ u&-v\\ v&\overline{u} \end{bmatrix} \begin{bmatrix} c&-s\\ s&\overline{c}\\ 1&& \end{bmatrix} = \begin{bmatrix} \overline{\rho}(s^2u-\gamma c^2)&\overline{\rho}\gamma(c+\overline{\gamma}u)s-\overline{\rho}vs\\ -\overline{\rho}(c+\overline{\gamma}u)s&\rho(s^2-\overline{\gamma}c^2u)&\rho\overline{\gamma}c\\ vs&v\overline{c}&\overline{u} \end{bmatrix}.
H^=[1c^−s^s^c^][u^−v^v^u^1][1−ρ‾γ‾cρ‾s‾−ρ‾s−ρ‾γ‾c]=[u^ρ‾γcv^−ρ‾sv^cv^ρs2−ρ‾γc2u^ρcsu^+ρ‾γcssv^−ρ‾γcsu^−ρ‾csρs2u^−ρ‾c2].\widehat{H}= \begin{bmatrix} 1&&\\ \widehat{c}&-\widehat{s}\\ \widehat{s}&\widehat{c} \end{bmatrix} \begin{bmatrix} \widehat{u}&-\widehat{v}\\ \widehat{v}&\widehat{u}\\ 1&& \end{bmatrix} \begin{bmatrix} 1&&\\ -\overline{\rho}\overline{\gamma}c&\overline{\rho}\overline{s}\\ -\overline{\rho}s&-\overline{\rho}\overline{\gamma}c \end{bmatrix} = \begin{bmatrix} \widehat{u}&\overline{\rho}\gamma c\widehat{v}&-\overline{\rho}s\widehat{v}\\ c\widehat{v}&\rho s^2-\overline{\rho}\gamma c^2\widehat{u}&\rho cs\widehat{u}+\overline{\rho}\gamma cs\\ s\widehat{v}&-\overline{\rho}\gamma cs\widehat{u}-\overline{\rho}cs&\rho s^2\widehat{u}-\overline{\rho}c^2 \end{bmatrix}.

It is enough to show that H=H^H=\widehat{H}. Using p=−ρ(c+γ‾u)p=-\rho(c+\overline{\gamma}u) and γ^=−ρ‾γ\widehat{\gamma}=-\overline{\rho}\gamma, together with ∣ρ∣=∣γ∣=1|\rho|=|\gamma|=1 and s2=1−cc‾s^2=1-c\overline{c}, HH becomes

H=[ρ‾(s2u−γc2)ρ‾γps−ρ‾vspsρ(s2−γ‾c2u)−vc‾γ^vsvc‾u‾].H= \begin{bmatrix} \overline{\rho}(s^2u-\gamma c^2)&\overline{\rho}\gamma ps&-\overline{\rho}vs\\ ps&\rho(s^2-\overline{\gamma}c^2u)&-v\overline{c}\widehat{\gamma}\\ vs&v\overline{c}&\overline{u} \end{bmatrix}.

In the case n≠0n\ne0, define Q^\widehat{Q} and Q~\widetilde{Q} as follows,

Q^=[1c^−s^s^c^],Q~=[1−ρ‾γ‾cρ‾s‾−ρ‾s−ρ‾γ‾c].\widehat{Q}= \begin{bmatrix} 1&&\\ \widehat{c}&-\widehat{s}\\ \widehat{s}&\widehat{c} \end{bmatrix}, \qquad \widetilde{Q}= \begin{bmatrix} 1&&\\ -\overline{\rho}\overline{\gamma}c&\overline{\rho}\overline{s}\\ -\overline{\rho}s&-\overline{\rho}\overline{\gamma}c \end{bmatrix}.

The matrices Q^\widehat{Q} and Q~\widetilde{Q} are designed to create zeros in the (3, 1) and (1, 3) entries of HH, respectively, so that

K=Q^∗HQ~∗=[u^−v^v^∗∗∗∗].K=\widehat{Q}^{*}H\widetilde{Q}^{*}= \begin{bmatrix} \widehat{u}&-\widehat{v}\\ \widehat{v}&*&*\\ *&* \end{bmatrix}.

Assume that s≠0s \ne0. Then v^≠0\hat{v} \ne0 and, since KK is unitary, K(3,2)=K(2,3)=0K(3,2)=K(2,3)=0. This implies that K(2,2)=u^K(2,2)=\hat{u}; since det⁡(H)=det⁡(K)=1\det(H)=\det(K)=1, we also have K(3,3)=1K(3,3)=1. Therefore,

K=[u^−v^0v^u^0001].K=\begin{bmatrix} \hat{u} & -\hat{v} & 0\\ \hat{v} & \hat{u} & 0\\ 0 & 0 & 1 \end{bmatrix}.

and

H=[100c^−s^0s^c^0][u^−v^0v^u^0001][100−ργ^c^ρs^0−ρs^−ργ^c^0]=H^.H= \begin{bmatrix} 1 & 0 & 0\\ \hat{c} & -\hat{s} & 0\\ \hat{s} & \hat{c} & 0 \end{bmatrix} \begin{bmatrix} \hat{u} & -\hat{v} & 0\\ \hat{v} & \hat{u} & 0\\ 0 & 0 & 1 \end{bmatrix} \begin{bmatrix} 1 & 0 & 0\\ -\rho\hat{\gamma}\hat{c} & \rho\hat{s} & 0\\ -\rho\hat{s} & -\rho\hat{\gamma}\hat{c} & 0 \end{bmatrix} =\hat{H}.

For s=0s=0, notice that for n≠0n\ne0, the entries of HH and H^\hat{H} are continuous in ss as long as the phase of cc is unchanged,

lim⁡s→0∣c∣=1,c∣c∣=constant.\lim_{s\to0}|c|=1,\qquad\frac{c}{|c|}=\text{constant}.

Since H−H^=0H-\hat{H}=0 for s≠0s\ne0, by continuity, lim⁡s→0(H−H^)=0\lim_{s\to0}(H-\hat{H})=0.

In the case n=0n=0, use s2=1−ccˉs^2=1-c\bar{c} to rewrite HH as,

H=[ρˉ(u−γ^cp)γˉps−ρˉvspsρ+pcˉ−vcγˉvsvcˉuˉ].H= \begin{bmatrix} \bar{\rho}(u-\hat{\gamma}cp) & \bar{\gamma}ps & -\bar{\rho}vs\\ ps & \rho+p\bar{c} & -vc\bar{\gamma}\\ vs & v\bar{c} & \bar{u} \end{bmatrix}.

Now n=0n=0 implies that p=v=0p=v=0 and the condition ∣u∣2+v2=1|u|^2+v^2=1 implies ∣u∣=1|u|=1, so the expression for HH reduces to

H=[ρˉu00ρ0uˉ].H= \begin{bmatrix} \bar{\rho}u & 0\\ 0 & \rho\\ 0 & \bar{u} \end{bmatrix}.

By construction

c^=0,s^=1,u^=ρˉu,v^=0,\hat{c}=0,\qquad\hat{s}=1,\qquad\hat{u}=\bar{\rho}u,\qquad\hat{v}=0,

which gives

H^=[u^0ρρˉuuˉ]=[ρˉu0ρuˉ]=H.\hat{H}= \begin{bmatrix} \hat{u} & 0\\ \rho& \dfrac{\bar{\rho}u}{\bar{u}} \end{bmatrix} = \begin{bmatrix} \bar{\rho}u & 0\\ \rho& \bar{u} \end{bmatrix} =H.

This completes the proof.

Theorem 2.1 shows that the product Q~1U2Q1\widetilde{Q}_1U_2Q_1 can be refactored into a new set of core transformations,

Q~1U2Q1=Q2U~1Q~2.\widetilde{Q}_1U_2Q_1=Q_2\widetilde{U}_1\widetilde{Q}_2.

where Q~2\widetilde{Q}_2 is the same as Q2Q_2 except for the unimodular factors ρ\rho and γ~\tilde{\gamma}, and computing a similarity transform with the matrix Q2Q_2 preserves the structure of the initial similarity transform, only one row lower and one column to the right,

Q2∗Q1∗UQ1Q2=U~1Q~2U3Q2U4…Un.Q_2^*Q_1^*UQ_1Q_2=\widetilde{U}_1\widetilde{Q}_2U_3Q_2U_4\ldots U_n.

Repeating this process n−1n-1 times completes a single step of the unitary core-chasing algorithm,

Q∗UQ=Qn∗…Q1∗UQ1…Qn=U^1U^2…U^n−1U^n=U^.Q^*UQ=Q_n^*\ldots Q_1^*UQ_1\ldots Q_n=\widehat{U}_1\widehat{U}_2\ldots\widehat{U}_{n-1}\widehat{U}_n=\widehat{U}.

Connection to symmetric tridiagonal QR

The formulas in Theorem 2.1 are possible thanks to the special structure of unitary upper Hessenberg matrices. Symmetric tridiagonal matrices also possess a similar structure that allows for the efficient implementation of Francis’ single-shift QR algorithm. Even though the algorithm is not a core-chasing algorithm in the sense of [2], the structure is remarkably similar. As an illustrative example, consider the following 3×33 \times3 symmetric tridiagonal matrix,

T=[a1b1b1a2b2b2a3].T = \begin{bmatrix} a_1 & b_1 & \\ b_1 & a_2 & b_2 \\ & b_2 & a_3 \end{bmatrix}.

Given a real shift ρ\rho, the QR iteration begins by applying the similarity transform Q1TTQ1Q_1^T T Q_1 where Q1Q_1 is the following core transformation,

Q1=[c1−s1s1c11],Q_1 = \begin{bmatrix} c_1 & -s_1 & \\ s_1 & c_1 & \\ & & 1 \end{bmatrix},

with n1=(a1−ρ)2+b12n_1 = \sqrt{(a_1-\rho)^2+b_1^2}, c1=(a1−ρ)/n1c_1=(a_1-\rho)/n_1 and s1=b1/n1s_1=b_1/n_1. The effect of this similarity transform is to create a nonzero bulge in the (3,1)(3,1) and (1,3)(1,3) entries of Q1TTQ1Q_1^T T Q_1,

Q1TTQ1=[∗∗+∗∗∗+∗∗].Q_1^T T Q_1 = \begin{bmatrix} * & * & + \\ * & * & * \\ + & * & * \end{bmatrix}.

The algorithm proceeds by constructing a core transformation Q2Q_2 that removes the bulge and returns the matrix to tridiagonal form,

Q2TQ1TTQ1Q2=[a^1b^1b^1a^2b^2b^2a^3]=T^.Q_2^T Q_1^T T Q_1 Q_2 = \begin{bmatrix} \widehat{a}_1 & \widehat{b}_1 & \\ \widehat{b}_1 & \widehat{a}_2 & \widehat{b}_2 \\ & \widehat{b}_2 & \widehat{a}_3 \end{bmatrix} = \widehat{T}.

Moving Q2Q_2 over to T^\widehat{T} gives the equivalent of a turnover for symmetric tridiagonal matrices,

Q1TTQ1=Q2T^Q2T.Q_1^T T Q_1 = Q_2 \widehat{T} Q_2^T.

The following formulas can be used to compute the entries of Q2Q_2 and the first row and column of T^\widehat{T} in exact arithmetic1,

p2=c1(a2−ρ)−s1b1,n2=p22+b22,c2=p2/n2,s2=b2/n2,a^1=c12a1+2c1s1b1+s12a2,b^1=s1n2.\begin{aligned} p_2 &= c_1(a_2-\rho)-s_1b_1,\\ n_2 &= \sqrt{p_2^2+b_2^2},\\ c_2 &= p_2/n_2,\\ s_2 &= b_2/n_2,\\ \widehat{a}_1 &= c_1^2a_1+2c_1s_1b_1+s_1^2a_2,\\ \widehat{b}_1 &= s_1n_2. \end{aligned}

As we can see, these formulas are similar in structure to those used in the symmetric turnover for unitary matrices, with the main differences being the need for complex arithmetic and the phase-tracking variable γ\gamma in the unitary case.

Nearly-Unitary Matrices

Although the results of Theorem 2.1 allow us to compute the turnover efficiently in exact arithmetic, the current formulas are not stable and do not permit the development of a square-root-free symmetric turnover. The instabilities come from the fact that the floating-point representations of the parameters uu and vv can no longer be guaranteed to satisfy ∣u∣2+v2=1|u|^2 + v^2 = 1 exactly, and from the possibility of cancellation when computing the turnover in floating-point arithmetic.

Similar numerical instabilities were present in Gragg’s first unitary QR algorithm [12] based on recurrence relations for Szegő polynomials. In [14], Gragg introduced a new change of variables for these relations that appeared to remove these instabilities and also allowed for a square-root-free implementation, though no proof was given. A proof of stability of these recurrence-based algorithms was given by Stewart in [23].

In this and the following sections, we will show that a similar change of variables to that found in [14] can be used to stabilize the symmetric turnover and to develop a square-root-free implementation. We will also show that these versions of the symmetric turnover are stable when applied to matrices that are only nearly-unitary in floating-point arithmetic.

A change of variables

In its current form, the symmetric turnover is not stable and does not allow for a square-root-free implementation. The main impediment is the formula for pp,

p=−ρ(c+γ‾cu).p = -\rho(c + \overline{\gamma}cu).

When computed in floating-point arithmetic, the product γ‾cu\overline{\gamma}cu followed by the addition with cc is prone to cancellation as the following example illustrates.

Example 3.1 (Instability of the Symmetric Turnover Before Changing Variables). Let μ=2−53\mu= 2^{-53} denote the unit roundoff for double precision and let fl⁡(⋅)\operatorname{fl}(\cdot) denote rounding to nearest. Define

a=fl⁡(32)=0.86602540378443860a = \operatorname{fl}\left(\frac{\sqrt{3}}{2}\right) = 0.86602540378443860

and consider the floating-point input parameters

u=i,v=0,c=γ=a−12i,s=0,ρ=1.u = i,\qquad v = 0,\qquad c = \gamma= a - \frac{1}{2}i,\qquad s = 0,\qquad\rho= 1.

Since

∣u∣2+v2=1|u|^2 + v^2 = 1

and

∣c∣2=∣γ∣2=1−1.1102230246251565×10−16=1−μ,|c|^2 = |\gamma|^2 = 1 - 1.1102230246251565 \times10^{-16} = 1 - \mu,

the input parameters are unitary to working precision. The corresponding input product is diagonal and satisfies

H=Q~UQ=(i0001000−i)+O(μ).H = \widetilde{Q} U Q = \begin{pmatrix} i & 0 & 0 \\ 0 & 1 & 0 \\ 0 & 0 & -i \end{pmatrix} + O(\mu).

Now compute the symmetric turnover in floating-point arithmetic using the formulas in Theorem 2.1. The first intermediate quantity is

p=−ρ(c+γ‾cu).p=-\rho\left(c+\overline{\gamma}cu\right).

Since γ=c\gamma=c, floating-point evaluation gives

γc=(12−μ)−aiandγ‾cu=−a+(12−μ)i.\gamma c=\left(\frac{1}{2}-\mu\right)-ai \qquad\text{and}\qquad \overline{\gamma}cu=-a+\left(\frac{1}{2}-\mu\right)i.

Since

c=a−12i,p=μi.c=a-\frac{1}{2}i,\qquad p=\mu i.

It follows that

n=∣p∣2+v2=μ,c^=pn=i,s^=vn=0.n=\sqrt{\lvert p\rvert^2+v^2}=\mu,\qquad\widehat{c}=\frac{p}{n}=i,\qquad\widehat{s}=\frac{v}{n}=0.

The remaining output parameters are

u^=ρ‾(s2u−γc2)=−γc2=i+O(μ),v^=sn=0,γ^=−ρ‾γ=−γ.\widehat{u}=\overline{\rho}\left(s^2u-\gamma c^2\right)=-\gamma c^2=i+O(\mu),\qquad\widehat{v}=sn=0,\qquad\widehat{\gamma}=-\overline{\rho}\gamma=-\gamma.

The corresponding computed output product satisfies

H^=Q^U^Q^=[i00012+32i000−32−12i]+O(μ).\widehat{H}=\widehat{Q}\widehat{U}\widehat{Q}= \begin{bmatrix} i & 0 & 0\\ 0 & \frac{1}{2}+\frac{\sqrt{3}}{2}i & 0\\ 0 & 0 & -\frac{\sqrt{3}}{2}-\frac{1}{2}i \end{bmatrix}+O(\mu).

Consequently,

H^−H=[0000−12+32i000−32+12i]+O(μ).\widehat{H}-H= \begin{bmatrix} 0 & 0 & 0\\ 0 & -\frac{1}{2}+\frac{\sqrt{3}}{2}i & 0\\ 0 & 0 & -\frac{\sqrt{3}}{2}+\frac{1}{2}i \end{bmatrix}+O(\mu).

Both nonzero diagonal entries of the leading term have modulus one, and hence

∥H^−H∥2=1+O(μ).\left\|\widehat{H}-H\right\|_2=1+O(\mu).

Thus, even though the input parameters represent core transformations that are unitary to working precision, evaluation of the symmetric turnover in Theorem 2.1 can produce an O(1)O(1) error in the resulting product.

In addition to the possibility of cancellation, the square-root-free turnover that we develop in the next section requires computing c^2\widehat{c}^2 directly from c2c^2, something the current formula for pp does not easily allow.

Fortunately, both of these problems are avoidable if we make a few changes of variables. The first change is to express cc in polar form, c=∣c∣σc=\lvert c\rvert\sigma. Applying this change to pp and factoring out σ\sigma gives the following,

p=−ρ∣c∣σ(1+γ‾σ2u).p=-\rho\lvert c\rvert\sigma\left(1+\overline{\gamma}\sigma^2u\right).

We then introduce the additional variables tt and zz, defined by

t=γ‾σ2u,z=1+t,t=\overline{\gamma}\sigma^2u,\qquad z=1+t,

which allows us to rewrite pp as,

p=−ρ∣c∣σz.p=-\rho|c|\sigma z.

The expression for tt uses only multiplication, which aids stability and the development of a square-root-free version. The formula for zz, however, can still suffer cancellation when t≈−1t \approx-1. Using another idea from [14], we can derive an alternative formula for zz by multiplying by (1−tˉ)(1-\bar{t}),

(1−tˉ)z=(1−tˉ)(1+t)=1−∣t∣2+(t−tˉ)=v2+2Im⁡(t)i,(1-\bar{t})z=(1-\bar{t})(1+t)=1-|t|^2+(t-\bar{t})=v^2+2\operatorname{Im}(t)i,

where we used 1−∣t∣2=1−∣u∣2=v21-|t|^2=1-|u|^2=v^2. This gives the following alternatives for computing zz,

z={1+t,Re⁡(t)≥0,v2+2Im⁡(t)i1−tˉ,Re⁡(t)<0.z= \begin{cases} 1+t, & \operatorname{Re}(t)\ge0,\\ \dfrac{v^2+2\operatorname{Im}(t)i}{1-\bar{t}}, & \operatorname{Re}(t)<0. \end{cases}

The branch conditions are chosen so that there is never cancellation in (1+t)(1+t) or (1−tˉ)(1-\bar{t}). Gragg suggested without proof that this alternative formulation for zz was stable because it uses vv in the case t≈−1t\approx-1 which implies ∣u∣≈1|u|\approx1 and v≈0v\approx0. As we will see later, the reason for the improved stability is more subtle.

For now we continue rewriting the symmetric turnover formulas using tt, zz and the polar decompositions c=∣c∣σc=|c|\sigma and c^=∣c^∣σ^\hat{c}=|\hat{c}|\hat{\sigma}:

n=∣p∣2+v2=∣c∣2∣z∣2+v2,∣c^∣=∣p∣/∣n∣=∣c∣∣z∣/n,σ^=c^/∣c^∣=p/∣p∣=−ρσz/∣z∣,s^=v/n,u^=ρˉ(s2u−γσ2∣c∣2),v^=sn,γ^=−ρˉγ.\begin{aligned} n&=\sqrt{|p|^2+v^2}=\sqrt{|c|^2|z|^2+v^2},\\ |\hat{c}|&=|p|/|n|=|c||z|/n,\\ \hat{\sigma}&=\hat{c}/|\hat{c}|=p/|p|=-\rho\sigma z/|z|,\\ \hat{s}&=v/n,\\ \hat{u}&=\bar{\rho}(s^2u-\gamma\sigma^2|c|^2),\\ \hat{v}&=sn,\\ \hat{\gamma}&=-\bar{\rho}\gamma. \end{aligned}

Notice that pp is no longer explicitly computed, since we can update ∣c^∣|\hat{c}| and σ^\hat{\sigma} directly using zz and the other input variables.

Let Q~\tilde{Q}, UU and QQ be inputs of the symmetric turnover, after applying the preceding change of variables,

Q~=[−ρˉγcσρˉs0−ρˉs−ρˉγcσˉ0001],U=[10u−vvuˉ],Q=[cσ−s0scσˉ0001],\tilde{Q}= \begin{bmatrix} -\bar{\rho}\gamma c\sigma& \bar{\rho}s & 0\\ -\bar{\rho}s & -\bar{\rho}\gamma c\bar{\sigma} & 0\\ 0&0&1 \end{bmatrix}, \qquad U= \begin{bmatrix} 1&0\\ u&-v\\ v&\bar{u} \end{bmatrix}, \qquad Q= \begin{bmatrix} c\sigma&-s&0\\ s&c\bar{\sigma}&0\\ 0&0&1 \end{bmatrix},

and Q^\hat{Q}, U^\hat{U} and Q~^\hat{\tilde{Q}} be the corresponding outputs,

Q^=[100c^σ^−s^0s^c^σ^],U^=[u^−v^v^−u^01],Q~^=[100−ρˉγ^c^σ^ρˉs^0−ρˉs^−ρˉγ^c^σ^0],\hat{Q}= \begin{bmatrix} 1&0&0\\ \hat{c}\hat{\sigma}&-\hat{s}&0\\ \hat{s}&\hat{c}\hat{\sigma} \end{bmatrix}, \qquad \hat{U}= \begin{bmatrix} \hat{u}&-\hat{v}\\ \hat{v}&-\hat{u}\\ 0&1 \end{bmatrix}, \qquad \hat{\tilde{Q}}= \begin{bmatrix} 1&0&0\\ -\bar{\rho}\hat{\gamma}\hat{c}\hat{\sigma}&\bar{\rho}\hat{s}&0\\ -\bar{\rho}\hat{s}&-\bar{\rho}\hat{\gamma}\hat{c}\hat{\sigma}&0 \end{bmatrix},

where the values of ∣c∣|c| and ∣c^∣|\hat{c}| have been replaced by cc and c^\hat{c}, respectively. Corollary 3.2 shows how to compute the symmetric turnover using the revised formulas.

Corollary 3.2 (Symmetric Turnover). Given unimodular complex numbers ρ\rho, γ\gamma and σ\sigma, a complex number uu, and nonnegative real numbers vv, cc and ss such that

∣u∣2+v2=1|u|^2+v^2=1 and c2+s2=1c^2+s^2=1, define the following,

t=γ‾σ2u,z={1+t,Re⁡(t)≥0,v2+2Im⁡(t)i1−t‾,Re⁡(t)<0,n=c2∣z∣2+v2,\begin{aligned} t &= \overline{\gamma}\sigma^2u,\\ z &= \begin{cases} 1+t, & \operatorname{Re}(t)\ge0,\\ \dfrac{v^2+2\operatorname{Im}(t)i}{1-\overline{t}}, & \operatorname{Re}(t)<0, \end{cases}\\ n &= \sqrt{c^2|z|^2+v^2}, \end{aligned}

if n≠0n\ne0:

c^=c∣z∣/n,σ^=−ρσz/∣z∣,s^=v/n,u^=ρ‾(s2u−γσ2c2),v^=sn\begin{aligned} \widehat{c} &= c|z|/n,\\ \widehat{\sigma} &= -\rho\sigma z/|z|,\\ \widehat{s} &= v/n,\\ \widehat{u} &= \overline{\rho}(s^2u-\gamma\sigma^2c^2),\\ \widehat{v} &= sn \end{aligned}

else:

c^=0,σ^=1,s^=1,u^=ρ‾u,v^=0,\begin{aligned} \widehat{c} &= 0,\\ \widehat{\sigma} &= 1,\\ \widehat{s} &= 1,\\ \widehat{u} &= \overline{\rho}u,\\ \widehat{v} &= 0, \end{aligned}
γ^=−ρ‾γ.\widehat{\gamma}=-\overline{\rho}\gamma.

Then,

Q~UQ=Q^U^Q^.\widetilde{Q}UQ=\widehat{Q}\widehat{U}\widehat{Q}.

Proof. The principal difference with the symmetric turnover formulas in Theorem 2.1 is the addition of the variables σ\sigma and σ^\widehat{\sigma}. In the n≠0n\ne0 branch, the definition of σ^\widehat{\sigma} requires that z≠0z\ne0. For unitary inputs both formulas for zz give the same result. Using the Re⁡(t)≥0\operatorname{Re}(t)\ge0 branch, notice that z=0⇒∣t∣=∣u∣=1⇒v=0z=0\Rightarrow|t|=|u|=1\Rightarrow v=0, thus n=0n=0. Therefore, n≠0⇒z≠0n\ne0\Rightarrow z\ne0. When n=0n=0, c^=0\widehat{c}=0 and σ^\widehat{\sigma} is not uniquely defined, so it is set equal to 1 for simplicity. The rest of the proof follows directly from Theorem 2.1 and the previously discussed changes of variables.

Nearly-unitary matrices

Just as in the symmetric tridiagonal case, the symmetry in the unitary core-chasing algorithm comes directly from the underlying unitary structure of the core transformations. Unlike the symmetric case, representing matrices that are exactly unitary is typically not possible using floating-point numbers. Take for example u=v=1/2u=v=1/\sqrt{2}. Define fl⁡(u)\operatorname{fl}(u) and fl⁡(v)\operatorname{fl}(v) to be their nearest floating-point number approximations, then in exact arithmetic u2+v2=1u^2+v^2=1, but fl⁡(u)2+fl⁡(v)2≠1\operatorname{fl}(u)^2+\operatorname{fl}(v)^2\ne1, since 1/21/\sqrt{2} is irrational.

Fortunately, even though fl⁡(u)2+fl⁡(v)2≠1\operatorname{fl}(u)^2+\operatorname{fl}(v)^2\ne1, there exists −1<ϵ<1-1<\epsilon<1 such that fl⁡(u)2+fl⁡(v)2=1+ϵ\operatorname{fl}(u)^2+\operatorname{fl}(v)^2=1+\epsilon. If ϵ\epsilon is not too large, say on the order of machine precision, we can think of the parameters fl⁡(u)\operatorname{fl}(u) and fl⁡(v)\operatorname{fl}(v) as representing a core transformation that is nearly-unitary.

We say that the core transformation UU is nearly-unitary if there exists 0≤ϵ<10\le\epsilon<1 such that

∥U∗U−I∥=O(ϵ),\lVert U^*U-I\rVert=O(\epsilon),

and, equivalently, that the corresponding parameters uu and vv are nearly-unitary if

ϵuv=∣u∣2+v2−1,∣ϵuv∣=O(ϵ).\epsilon_{uv}=|u|^2+v^2-1,\qquad|\epsilon_{uv}|=O(\epsilon).

We refer to ϵuv\epsilon_{uv} as the unitary defect for the parameters uu and vv.2

Since the symmetric turnover is only defined for unitary matrices, we need to analyze what happens when the input core transformations are only nearly-unitary. While the analysis that follows is true for any modest value of ϵ\epsilon, in practice ϵ\epsilon is on the order of machine precision and the constant in the O(ϵ)O(\epsilon) term is on the order of 10210^2.

Fortunately, as the following theorem demonstrates, if the inputs to the symmetric turnover are nearly-unitary, then the outputs are also nearly-unitary and the products Q~UQ\widetilde{Q}UQ and Q^U^Q^\widehat{Q}\widehat{U}\widehat{Q} are close.

Theorem 3.3 (Exactness of Symmetric Turnover for Nearly-Unitary Inputs). Assume that the inputs of Corollary 3.2 are nearly-unitary for 0≤ϵ<10 \leq\epsilon< 1. Then, for ϵ\epsilon sufficiently small, the corresponding outputs are also nearly-unitary with respect to the same ϵ\epsilon and

∥Q~UQ−Q^U^Q^∥=O(ϵ).\left\lVert\widetilde{Q}UQ-\widehat{Q}\widehat{U}\widehat{Q}\right\rVert=O(\epsilon).

Proof. Since the inputs are nearly-unitary, their unitary defects are all real and O(ϵ)O(\epsilon),

∣u∣2+v2=1+ϵuv,c2+s2=1+ϵcs,∣σ∣2=1+ϵσ,∣γ∣2=1+ϵγ,∣ρ∣2=1+ϵρ.\lvert u\rvert^2+v^2=1+\epsilon_{uv},\qquad c^2+s^2=1+\epsilon_{cs},\qquad\lvert\sigma\rvert^2=1+\epsilon_{\sigma},\qquad\lvert\gamma\rvert^2=1+\epsilon_{\gamma},\qquad\lvert\rho\rvert^2=1+\epsilon_{\rho}.

For ϵ\epsilon sufficiently small, the unitary defects are all strictly less than 1 in absolute value, so we can project the nearly-unitary inputs onto nearby inputs that represent exactly unitary core transformations as follows,

u‾=u1+ϵuv,v‾=v1+ϵuv,c‾=c1+ϵcs,s‾=s1+ϵcs,\underline{u}=\frac{u}{\sqrt{1+\epsilon_{uv}}},\qquad\underline{v}=\frac{v}{\sqrt{1+\epsilon_{uv}}},\qquad\underline{c}=\frac{c}{\sqrt{1+\epsilon_{cs}}},\qquad\underline{s}=\frac{s}{\sqrt{1+\epsilon_{cs}}},
σ‾=σ1+ϵσ,γ‾=γ1+ϵγ,ρ‾=ρ1+ϵρ.\underline{\sigma}=\frac{\sigma}{\sqrt{1+\epsilon_{\sigma}}},\qquad\underline{\gamma}=\frac{\gamma}{\sqrt{1+\epsilon_{\gamma}}},\qquad\underline{\rho}=\frac{\rho}{\sqrt{1+\epsilon_{\rho}}}.

The same ϵ\epsilon can be taken sufficiently small such that the projected inputs also satisfy

x‾=x(1+O(ϵ)),x=u,v,c,s,σ,γ,ρ.\underline{x}=x(1+O(\epsilon)),\qquad x=u,v,c,s,\sigma,\gamma,\rho.

Now let Q~\widetilde{Q}, U~\widetilde{U} and Q~\widetilde{Q} be the input core transformations to the symmetric turnover defined in terms of the projected parameters u‾\underline{u}, v‾\underline{v}, c‾\underline{c}, s‾\underline{s}, σ‾\underline{\sigma}, γ‾\underline{\gamma} and ρ‾\underline{\rho}. Then, it follows directly that

∥Q~UQ−Q~ U‾ Q‾∥=O(ϵ).\left\lVert\widetilde{Q}UQ-\widetilde{Q}\,\underline{U}\,\underline{Q}\right\rVert=O(\epsilon).

Since u‾\underline{u}, v‾\underline{v}, c‾\underline{c}, s‾\underline{s}, σ‾\underline{\sigma}, γ‾\underline{\gamma} and ρ‾\underline{\rho} represent core transformations that are exactly unitary, applying the symmetric turnover from Corollary 3.2 results in outputs u^\widehat{u}, v^\widehat{v}, c^\widehat{c}, s^\widehat{s}, σ^\widehat{\sigma} and γ^\widehat{\gamma} that correspond to the exactly unitary core transformations Q^\widehat{Q}, U^\widehat{U} and Q^\widehat{Q} which satisfy

Q~ U‾ Q‾=Q^U^Q^.\widetilde{Q}\,\underline{U}\,\underline{Q}=\widehat{Q}\widehat{U}\widehat{Q}.

To finish the proof we must show that the outputs of applying the symmetric turnover to the nearly-unitary inputs are also nearly-unitary, and that the corresponding core transformations Q^\widehat{Q}, U^\widehat{U} and Q^\widehat{Q} satisfy

∥Q^U^Q^−Q^U^Q^∥=O(ϵ).\left\lVert\widehat{Q}\widehat{U}\widehat{Q}-\widehat{Q}\widehat{U}\widehat{Q}\right\rVert=O(\epsilon).

To show this, we apply the symmetric turnover from Corollary 3.2 to the nearly-unitary inputs and track how the relative errors from projecting them to the exactly unitary inputs propagate. The first step is to compute tt,

t=γσ‾2u=γ‾ σ‾2u‾(1+O(ϵ))=t‾(1+O(ϵ)).t=\gamma\overline{\sigma}^{2}u=\overline{\gamma}\,\overline{\sigma}^{2}\underline{u}(1+O(\epsilon))=\underline{t}(1+O(\epsilon)).

This says that when ϵ\epsilon is sufficiently small, the relative errors introduced from projecting the nearly-unitary inputs translate into small relative errors in the parameter t~\tilde{t} computed using the exactly unitary inputs. What is not shown explicitly is that this relative error is real and positive. That is because the projections were performed using real, positive scalars. Since tt and t~\tilde{t} differ by a real positive multiple, the sign of Re⁡(t)\operatorname{Re}(t) and Re⁡(t~)\operatorname{Re}(\tilde{t}) are the same, which preserves the branch structure. When Re⁡(t)≥0\operatorname{Re}(t) \ge0 we have that

z=1+t=1+t~(1+O(ϵ))=(1+t~)(1+O(ϵ))=z~(1+O(ϵ)),z = 1 + t = 1 + \tilde{t}(1 + O(\epsilon)) = (1 + \tilde{t})(1 + O(\epsilon)) = \tilde{z}(1 + O(\epsilon)),

where we used the fact that there is no cancellation in 1+t~1+\tilde{t}. When Re⁡(t)<0\operatorname{Re}(t) < 0 we have

z=v2+2Im⁡(t)i1−t~=v2(1+O(ϵ))+2Im⁡(t)i(1+O(ϵ))1−t~(1+O(ϵ))=z~(1+O(ϵ)),z = \frac{v^2 + 2\operatorname{Im}(t)i}{1-\tilde{t}} = \frac{v^2(1+O(\epsilon)) + 2\operatorname{Im}(t)i(1+O(\epsilon))}{1-\tilde{t}(1+O(\epsilon))} = \tilde{z}(1+O(\epsilon)),

where we used the fact that v2v^2 and 2Im⁡(t)i2\operatorname{Im}(t)i are orthogonal and that there is no cancellation in 1−t~1-\tilde{t}. Although the relative errors from projecting the inputs were real, the relative error between zz and z~\tilde{z} is, in general, complex. The last internal parameter is nn,

n=c2∣z∣2+v2=c~2∣z~∣2(1+O(ϵ))+v2(1+O(ϵ))=n~(1+O(ϵ)),n = \sqrt{c^2|z|^2 + v^2} = \sqrt{\tilde{c}^2|\tilde{z}|^2(1+O(\epsilon)) + v^2(1+O(\epsilon))} = \tilde{n}(1+O(\epsilon)),

where we used the fact that there is no cancellation when computing the sum of squares and that the square-root preserves small relative errors for ϵ\epsilon sufficiently small.

Even though the relative errors in zz are complex, the relative error between nn and n~\tilde{n} is real and positive, so the branch condition on nn is preserved. Applying a similar analysis to the output variables in both branches yields the following,

u^=u~^+O(ϵ),v^=v~(1+O(ϵ)),c^=c~(1+O(ϵ)),s^=s~(1+O(ϵ)),\hat{u} = \hat{\tilde{u}} + O(\epsilon), \qquad\hat{v} = \tilde{v}(1+O(\epsilon)), \qquad\hat{c} = \tilde{c}(1+O(\epsilon)), \qquad\hat{s} = \tilde{s}(1+O(\epsilon)),
σ^=σ~(1+O(ϵ)),γ^=γ~(1+O(ϵ)).\hat{\sigma} = \tilde{\sigma}(1+O(\epsilon)), \qquad\hat{\gamma} = \tilde{\gamma}(1+O(\epsilon)).

Apart from u^\hat{u}, the relative errors introduced by projecting the nearly-unitary inputs resulted in similar relative errors between these outputs and the exactly unitary ones. Even with the absolute error in u^\hat{u}, this shows that for sufficiently small ϵ\epsilon, the outputs of the symmetric turnover applied to nearly-unitary inputs are also nearly-unitary. Moreover, the corresponding core transformations satisfy

∥Q^U^Q^e−Q^U^Q^e∥=O(ϵ).\left\lVert\hat{Q}\hat{U}\hat{Q}_{e} - \hat{Q}\hat{U}\hat{Q}_{e} \right\rVert= O(\epsilon).

Combining this with the previous results gives

∥Q~UQ~−Q^U^Q^e∥=O(ϵ),\left\lVert\tilde{Q}U\tilde{Q} - \hat{Q}\hat{U}\hat{Q}_{e} \right\rVert= O(\epsilon),

which completes the proof.

Theorem 3.3 can be seen as a type of mixed stability result for the symmetric turnover for data that is only nearly-unitary. Namely, there exist nearby exactly unitary inputs whose outputs are close to the outputs computed using the nearly-unitary data.

Two formulas for zz

We conclude this section with an explanation of why the alternative formula for zz proposed by Gragg is needed for stability, even when computing in exact arithmetic. Recall that in the proof of Corollary 3.2 we used the fact that n≠0n \ne0 implies z≠0z \ne0 to show that σ^\hat{\sigma} is always well-defined. For inputs that are only nearly-unitary, the formula z=1+tz = 1 + t does not guarantee this in general. Take, for example,

u=−1,v=ϵ,c=s=1/2,σ=1,γ=1,ρ=−1,u=-1,\quad v=\sqrt{\epsilon},\quad c=s=1/\sqrt{2},\quad\sigma=1,\quad\gamma=1,\quad\rho=-1,

for ϵ>0\epsilon>0. Then, t=γ‾σ2u=−1t=\overline{\gamma}\sigma^{2}u=-1 and z=1+t=0z=1+t=0, but n=c2∣z∣2+v2=ϵn=\sqrt{c^{2}|z|^{2}+v^{2}}=\sqrt{\epsilon}. So z=0z=0 even though n>0n>0. Since Re⁡(t)<0\operatorname{Re}(t)<0 we should instead use the alternative formula for zz,

z=v2+2Im⁡(t)i1−t‾=ϵ2.z=\frac{v^{2}+2\operatorname{Im}(t)i}{1-\overline{t}}=\frac{\epsilon}{2}.

Using this definition, n≠0⇒z≠0n\ne0\Rightarrow z\ne0 as expected.

For unitary core transformations, both formulas for zz are equal, so the instability can only be seen for nearly-unitary inputs. As this example illustrates, z=0z=0 must imply v=0v=0 so that nn is also 0. The alternative formula for zz guarantees that this cannot happen, thus avoiding this potential instability.

A Square-Root-Free Symmetric Turnover

In this section we show how to compute the symmetric turnover from Corollary 3.2 implicitly without computing any square roots. This result is similar to the square-root-free QR algorithms for symmetric tridiagonal matrices [8, 19] and to the rational QR algorithms for unitary matrices [14, 23].

In this section we also show how to control the growth of the unitary defects of the iteration parameters throughout the core-chasing steps. This involves projecting the nearly-unitary outputs of the symmetric and square-root-free turnovers onto nearby, nearly-unitary outputs with smaller defects. Since the defects are small, this projection can be done without computing any square roots using a degree-one Taylor polynomial.

Casting out the square roots

In the n≠0n\ne0 branch, the symmetric turnover in Corollary 3.2 computes two square roots,

n=c2∣z∣2+v2,∣z∣=Re⁡(z)2+Im⁡(z)2.n=\sqrt{c^{2}|z|^{2}+v^{2}},\qquad|z|=\sqrt{\operatorname{Re}(z)^{2}+\operatorname{Im}(z)^{2}}.

To avoid computing these square roots, we should work with n2n^{2} and ∣z∣2|z|^{2} directly, which requires that we square all variables that depend on nn and ∣z∣|z|. For n≠0n\ne0 this gives,

t=γ‾σ2u,z={1+t,Re⁡(t)≥0,v2+2Im⁡(t)i1−t‾,Re⁡(t)<0,n2=c2∣z∣2+v2,c^2=c2∣z∣2/n2,σ^2=ρ2σ2z2/∣z∣2,s^2=v2/n2,u^=ρ‾(s2u−γσ2c2),v^2=s2n2,γ^=−ρ‾γ.\begin{aligned} t&=\overline{\gamma}\sigma^{2}u,\\ z&=\begin{cases} 1+t, & \operatorname{Re}(t)\ge0,\\ \dfrac{v^{2}+2\operatorname{Im}(t)i}{1-\overline{t}}, & \operatorname{Re}(t)<0, \end{cases}\\ n^{2}&=c^{2}|z|^{2}+v^{2},\\ \widehat{c}^{2}&=c^{2}|z|^{2}/n^{2},\\ \widehat{\sigma}^{2}&=\rho^{2}\sigma^{2}z^{2}/|z|^{2},\\ \widehat{s}^{2}&=v^{2}/n^{2},\\ \widehat{u}&=\overline{\rho}(s^{2}u-\gamma\sigma^{2}c^{2}),\\ \widehat{v}^{2}&=s^{2}n^{2},\\ \widehat{\gamma}&=-\overline{\rho}\gamma. \end{aligned}

Notice that tt, zz, u^\hat{u} and γ^\hat{\gamma} are all unchanged. For the remaining variables, we compute their squares using n2n^2, ∣z∣2|z|^2 and the squares of the inputs. We can simplify this further if we combine γ\gamma and σ\sigma into a new variable ω=γσ2\omega= \gamma\sigma^2. Defining the corresponding output ω^=γ^σ^2\hat{\omega} = \hat{\gamma}\hat{\sigma}^2, the symmetric turnover reduces to

t=ωˉu,z={1+t,Re⁡(t)≥0,v2+2Im⁡(t)i1−tˉ,Re⁡(t)<0,n2=c2∣z∣2+v2,c^2=c2∣z∣2n2,ω^=−ρωz2/∣z∣2,s^2=v2/n2,u^=ρˉ(s2u−c2ω),v^2=s2n2.\begin{aligned} t &= \bar{\omega}u,\\ z &= \begin{cases} 1+t, & \operatorname{Re}(t)\ge0,\\ \frac{v^2+2\operatorname{Im}(t)i}{1-\bar{t}}, & \operatorname{Re}(t)<0, \end{cases}\\ n^2 &= c^2|z|^2+v^2,\\ \hat{c}^2 &= \frac{c^2|z|^2}{n^2},\\ \hat{\omega} &= -\rho\omega z^2/|z|^2,\\ \hat{s}^2 &= v^2/n^2,\\ \hat{u} &= \bar{\rho}(s^2u-c^2\omega),\\ \hat{v}^2 &= s^2n^2. \end{aligned}

The phase tracking variable γ\gamma has been absorbed by ω\omega and is no longer explicitly needed. The following corollary shows that computing the symmetric turnover without square roots is equivalent to computing the turnover using square roots for a corresponding set of unsquared inputs.

Corollary 4.1 (Square-Root-Free Symmetric Turnover). Given unimodular complex numbers ρ\rho, γ\gamma and ω\omega, a complex number uu, and nonnegative real numbers vvvv, cccc and ssss such that ∣u∣2+vv=1|u|^2+vv=1 and cc+ss=1cc+ss=1, define the following,

t=ωˉu,z={1+t,Re⁡(t)≥0,vv+2Im⁡(t)i1−tˉ,Re⁡(t)<0,nn=cc⋅∣z∣2+vv,\begin{aligned} t &= \bar{\omega}u,\\ z &= \begin{cases} 1+t, & \operatorname{Re}(t)\ge0,\\ \frac{vv+2\operatorname{Im}(t)i}{1-\bar{t}}, & \operatorname{Re}(t)<0, \end{cases}\\ nn &= cc\cdot|z|^2+vv, \end{aligned}

if nn≠0nn\ne0:

cc^=cc⋅∣z∣2/nn,ss^=vv/nn,u^=ρˉ(ss⋅u−cc⋅ω),vv^=ss⋅nn,ω^=−ρωz2/∣z∣2,\begin{aligned} \hat{cc} &= cc\cdot|z|^2/nn,\\ \hat{ss} &= vv/nn,\\ \hat{u} &= \bar{\rho}(ss\cdot u-cc\cdot\omega),\\ \widehat{vv} &= ss\cdot nn,\\ \hat{\omega} &= -\rho\omega z^2/|z|^2, \end{aligned}

else:

cc^=0,ss^=1,u^=ρˉu,vv^=0,ω^=1.\begin{aligned} \hat{cc} &= 0,\\ \hat{ss} &= 1,\\ \hat{u} &= \bar{\rho}u,\\ \widehat{vv} &= 0,\\ \hat{\omega} &= 1. \end{aligned}

Then, for

u,v=vv,c=cc,s=ss,σ=γω,γ,ρ,u,\quad v=\sqrt{vv},\quad c=\sqrt{cc},\quad s=\sqrt{ss},\quad\sigma=\sqrt{\gamma\omega},\quad\gamma,\quad\rho,

and

u^,v^=vv^,c^=cc^,s^=ss^,σ^=γ^ω^,γ^=−ρˉγ,\hat{u},\quad\hat{v}=\sqrt{\widehat{vv}},\quad\hat{c}=\sqrt{\hat{cc}},\quad\hat{s}=\sqrt{\hat{ss}},\quad\hat{\sigma}=\sqrt{\hat{\gamma}\hat{\omega}},\quad\hat{\gamma}=-\bar{\rho}\gamma,

where the square roots are chosen so that the real variables are nonnegative and σ^=\hat{\sigma}=

−ρσz/∣z∣,-\rho\sigma z/\lvert z\rvert,
Q‾UQ=Q^U^Q^.\overline{Q}UQ=\widehat{Q}\widehat{U}\widehat{Q}.

Proof. The result follows directly from Corollary 3.2.

Corollary 4.1 says that we can implicitly compute the symmetric turnover without square roots if we work with v2v^2, c2c^2, s2s^2 and γσ2\gamma\sigma^2 directly. While this saves two expensive square-root computations, it comes at a cost. Namely, we no longer store the UiU_i or QiQ_i explicitly, and without QiQ_i we cannot compute eigenvectors. When calculating eigenvalues, vi2→0v_i^2 \to0, and the eigenvalues are recovered using the uiu_i. Since the uiu_i are computed explicitly, the eigenvalues can be computed without using square roots.

Square-root-free renormalization

In the original unitary QR algorithm in [12] Gragg noted an instability caused by a gradual increase in the unitary defect for the pair uiu_i and viv_i. A practical solution is to project the parameters back onto the unit circle after every iteration. If the unitary defect is small, then the projection errors are small and relative,

ϵuv=∣u∣2+v2−1,u←u1+ϵuv,v←v1+ϵuv.\epsilon_{uv}=\lvert u\rvert^2+v^2-1,\qquad u\leftarrow\frac{u}{\sqrt{1+\epsilon_{uv}}},\qquad v\leftarrow\frac{v}{\sqrt{1+\epsilon_{uv}}}.

Theorem 3.3 says that the outputs of the symmetric turnover are nearly-unitary whenever the inputs are. Although not given explicitly, even for inputs with unitary defects on the order of machine precision, the defects of the output variables are, in the worst case, on the order of 10 times larger.

Since we also need to renormalize in the square-root-free turnover, we would prefer to avoid computing these additional square roots if possible. One option is to compute the defects and check if they are below some threshold. If they are small enough, the renormalization step can be skipped. Otherwise, renormalization is performed using square roots. While this may save computing some of the square roots, there is no guarantee that they can be avoided in general. A more universal approach is to use the fact that the defects are small and approximate 1/1+ϵuv1/\sqrt{1+\epsilon_{uv}} with a degree-one Taylor polynomial. For ϵuv\epsilon_{uv} sufficiently small, the Taylor remainder theorem says that

11+ϵuv=1−ϵuv/2+O(ϵuv2).\frac{1}{\sqrt{1+\epsilon_{uv}}}=1-\epsilon_{uv}/2+O(\epsilon_{uv}^{2}).

So, if uu and vv are nearly-unitary with defect ϵuv\epsilon_{uv}, then

u′=u(1−ϵuv/2),v′=v(1−ϵuv/2),u'=u(1-\epsilon_{uv}/2),\qquad v'=v(1-\epsilon_{uv}/2),

are nearly-unitary with defect O(ϵuv2)O(\epsilon_{uv}^{2}).

For defects on the order of machine precision, renormalizing using a degree one Taylor polynomial is sufficient for reducing any growth in the defects to an acceptable level. Even in exact arithmetic, we cannot expect the defects to be smaller than the unit roundoff since u′u' and v′v' will also be approximated by floating-point numbers.

This formula for renormalization requires computing the defect ϵuv=∣u∣2+v2−1\epsilon_{uv}=\lvert u\rvert^2+v^2-1, which is susceptible to cancellation. An alternative formula that avoids this cancellation first computes x=∣u∣2+v2x=\lvert u\rvert^2+v^2 then renormalizes via the formulas,

u′=u(3−x)/2,v′=v(3−x)/2.u'=u(3-x)/2,\qquad v'=v(3-x)/2.

For the square-root-free turnover, we have to renormalize vvvv instead of vv. Using a degree-one Taylor polynomial, this becomes

1/(1+ϵuv)=1−ϵuv+O(ϵuv2),vv′=vv(1−ϵuv)=vv(2−x),1/(1+\epsilon_{uv})=1-\epsilon_{uv}+O(\epsilon_{uv}^{2}),\qquad vv'=vv(1-\epsilon_{uv})=vv(2-x),

where x=∣u∣2+vvx = |u|^2 + vv and ϵuv=x−1\epsilon_{uv} = x - 1. Similarly, first order renormalization for the variables γ\gamma, σ\sigma and ω\omega as follows

γ′=γ(3−∣γ∣2)/2,σ′=σ(3−∣σ∣2)/2andω′=ω(3−∣ω∣2)/2.\gamma' = \gamma(3 - |\gamma|^2)/2,\quad\sigma' = \sigma(3 - |\sigma|^2)/2 \quad\text{and}\quad\omega' = \omega(3 - |\omega|^2)/2.

The variables cc and ss, as well as cccc and ssss, are normalized by construction and therefore do not need to be renormalized. The results of Theorem 3.3 still apply for the turnovers with renormalization since the first order corrections introduce at most O(ϵ)O(\epsilon) relative errors. Algorithms 4.1 and 4.2 give pseudocode for computing the symmetric and square-root-free turnovers with renormalization.

Algorithm 4.1: Symmetric Turnover with Renormalization

Require: u, v, c, s, σ, γ, ρ
t = γσ
if Re(t) ≥ 0 then
    z = 1 + t
else
    z = (v² + 2 Im(t)i)/(1 − t)
end if
n = √(c²|z|² + v²)
if n > 0 then
    c̄ = c|z|/n
    σ̄ = −ρσz̄/|z|
    s̄ = v/n
    ū = ρ(s²u − γσ²c²)
    v̄ = ns
else
    c̄ = 0
    σ̄ = 1
    s̄ = 1
    ū = ρu
    v̄ = 0
end if
γ̄ = −ργ
Renormalization
x = |ū|² + v̄²
ū = ū(3 − x)/2
v̄ = v̄(3 − x)/2
σ̄ = σ̄(3 − |σ̄|²)/2
γ̄ = γ̄(3 − |γ̄|²)/2
return ū, v̄, c̄, s̄, σ̄, γ̄

Algorithm 4.2: Square-Root-Free Symmetric Turnover with Renormalization

Require: u, vv, cc, ss, ω, ρ
t = ωu
if Re(t) ≥ 0 then
    z = 1 + t
else
    z = (vv + 2 Im(t)i)/(1 − t)
end if
zz = Re(z)² + Im(z)²
nn = cc · zz + vv
if nn > 0 then
    c̄c = cc · zz/nn
    ω̄ = −ρωz²/zz
    s̄s = vv/nn
    ū = ρ(ss · u − cc · ω)
    v̄v = nn · ss
else
    c̄c = 0
    ω̄ = 1
    s̄s = 1
    ū = ρu
    v̄v = 0
end if
Renormalization
x = |ū|² + v̄v
ū = ū(3 − x)/2
v̄v = v̄v(2 − x)
ω̄ = ω̄(3 − |ω̄|²)/2
return ū, v̄v, c̄c, s̄s, ω̄

Numerical Stability

In this section we will show that the symmetric and square-root-free turnovers in Algorithms 4.1 and 4.2 are backward stable, which is enough to guarantee that the entire core-chasing iteration is backward stable [2]. We will also show in Example 5.4 that even in exact arithmetic we cannot expect the turnover to be exact for matrices that are only nearly-unitary. Since the floating-point representations of the core transformations are almost never exactly unitary, we cannot expect any sort of structured backward error result, at least not in a strict sense. Instead we will prove normwise backward stability for the input core transformations to the turnover.

Forward stability

The first result is a mixed forward-backward error result when computing the turnover in floating-point arithmetic. Our analysis assumes that the standard axioms of floating-point arithmetic hold. See [16], for example. Let μ\mu be the unit roundoff. Then, for floating-point numbers xx and yy, possibly complex, we assume the following,

fl⁡(x∘y)=(x∘y)(1+O(μ)),∘=+,−,∗,/fl⁡(x)=x(1+O(μ)).\begin{aligned} \operatorname{fl}(x \circ y) &= (x \circ y)(1+O(\mu)), \qquad\circ=+, -, *, /\\ \operatorname{fl}(\sqrt{x}) &= \sqrt{x}(1+O(\mu)). \end{aligned}

The following lemma shows that both the symmetric and square-root-free turnovers are forward stable.

Lemma 5.1 (Forward Stability of Algorithm Algorithm 4.1). Assume the matrices Q~\widetilde{Q}, UU and QQ are stored in floating point and nearly-unitary with O(μ)O(\mu) defects, and let Q~′\widetilde{Q}', U~′\widetilde{U}' and Q~′\widetilde{Q}' be the outputs of the symmetric turnover computed via Algorithm 4.1. Then,

∥Q~UQ−Q~′U~′Q~′∥=O(μ).\left\lVert\widetilde{Q}UQ-\widetilde{Q}'\widetilde{U}'\widetilde{Q}'\right\rVert=O(\mu).

Proof. The first step is to compute tt from the inputs uu, σ\sigma and γ\gamma. Since this is done via complex multiplication, it follows that

t′=fl⁡(t)=fl⁡(γ‾σ2u)=t(1+O(μ)).t'=\operatorname{fl}(t)=\operatorname{fl}(\overline{\gamma}\sigma^2u)=t(1+O(\mu)).

Unlike Theorem 3.3, the relative error (1+O(μ))(1+O(\mu)) is complex in general. So, even though the relative errors in t′t' are small, the relative errors in Re⁡(t′)\operatorname{Re}(t') and Im⁡(t′)\operatorname{Im}(t') may be large. This means that t′t' does not necessarily preserve the branch structure for computing zz, except in the case t=0t=0.

To avoid this complication, the forward error in t′t' can be interpreted as a backward error for the input σ\sigma. Assume t≠0t\ne0 and define σ′′\sigma'' as

σ′′=σt′t.\sigma''=\sigma\sqrt{\frac{t'}{t}}.

Then, σ′′=σ(1+O(μ))\sigma''=\sigma(1+O(\mu)) and t′=γσ′′2ut'=\gamma\sigma''^{2}u. Next, define Q~′′\widetilde{Q}'' and Q′′Q'' using σ′′\sigma'' and the other unperturbed inputs,

Q~′′=[−ρ‾γcσ′′ρ‾s−ρs−ργ‾cσ′′1],Q′′=[cσ′′−sscσ′′].\widetilde{Q}''= \begin{bmatrix} -\overline{\rho}\gamma c\sigma'' & \overline{\rho}s\\ -\rho s & -\rho\overline{\gamma}c\sigma'' & 1 \end{bmatrix}, \qquad Q''= \begin{bmatrix} c\sigma'' & -s\\ s & c\sigma'' \end{bmatrix}.

It follows immediately that

∥Q~UQ−Q~′′UQ′′∥=O(μ).\left\lVert\widetilde{Q}UQ-\widetilde{Q}''UQ''\right\rVert=O(\mu).

Applying Algorithm 4.1 to the inputs uu, vv, cc, ss, σ′′\sigma'', γ\gamma and ρ\rho in exact arithmetic gives outputs u^′′,v^′′,c^′′,s^′′,σ^′′\widehat{u}'',\widehat{v}'',\widehat{c}'',\widehat{s}'',\widehat{\sigma}'' and γ^′′\widehat{\gamma}'', and corresponding matrices Q^′′,U^′′\widehat{Q}'',\widehat{U}'' and Q^′′\widehat{Q}'' that satisfy

∥Q~′′UQ′′−Q^′′U^′′Q^′′∥=O(μ).\left\lVert\widetilde{Q}''UQ''-\widehat{Q}''\widehat{U}''\widehat{Q}''\right\rVert=O(\mu).

To complete the proof it is enough to show that

u^′=u^′′+O(μ),v^′=v^′′(1+O(μ)),c^′=c^′′(1+O(μ)),\widehat{u}'=\widehat{u}''+O(\mu),\qquad \widehat{v}'=\widehat{v}''(1+O(\mu)),\qquad \widehat{c}'=\widehat{c}''(1+O(\mu)),
s^′=s^′′(1+O(μ)),σ^′=σ^′′(1+O(μ)),γ^′=γ^′′(1+O(μ)),\widehat{s}'=\widehat{s}''(1+O(\mu)),\qquad \widehat{\sigma}'=\widehat{\sigma}''(1+O(\mu)),\qquad \widehat{\gamma}'=\widehat{\gamma}''(1+O(\mu)),

from which it follows that

∥Q^′′U^′′Q^′′−Q^′U^′Q^′∥=O(μ).\left\lVert\widehat{Q}''\widehat{U}''\widehat{Q}''-\widehat{Q}'\widehat{U}'\widehat{Q}'\right\rVert=O(\mu).

In exact arithmetic, the first step in the turnover using σ′′\sigma^{\prime\prime} is

t′′=γσ′′2u=t′.t^{\prime\prime}=\gamma\sigma^{\prime\prime2}u=t^{\prime}.

So using σ′′\sigma^{\prime\prime} in exact arithmetic produces the same value for tt as using σ\sigma in floating-point arithmetic. This means that the branching condition for zz is maintained. For Re⁡(t′)≥0\operatorname{Re}(t^{\prime}) \ge0,

z′=fl⁡(z)=fl⁡(1+t′)=(1+t′)(1+O(μ))=(1+t′′)(1+O(μ))=z′′(1+O(μ)).z^{\prime}=\operatorname{fl}(z)=\operatorname{fl}(1+t^{\prime})=(1+t^{\prime})(1+O(\mu))=(1+t^{\prime\prime})(1+O(\mu))=z^{\prime\prime}(1+O(\mu)).

For the branch Re⁡(t′)<0\operatorname{Re}(t^{\prime})<0,

z′=fl⁡(v2)+fl⁡(2Im⁡(t′)i)fl⁡(1−t′‾)=v2(1+O(μ))+2Im⁡(t′)(1+O(μ))i(1−t′‾)(1+O(μ)).z^{\prime}=\frac{\operatorname{fl}(v^{2})+\operatorname{fl}(2\operatorname{Im}(t^{\prime})i)}{\operatorname{fl}(1-\overline{t^{\prime}})}=\frac{v^{2}(1+O(\mu))+2\operatorname{Im}(t^{\prime})(1+O(\mu))i}{(1-\overline{t^{\prime}})(1+O(\mu))}.

Since v2v^{2} and 2Im⁡(t′)2\operatorname{Im}(t^{\prime}) are real, v2v^{2} and 2Im⁡(t′)i2\operatorname{Im}(t^{\prime})i are orthogonal, so their rounding errors are real and orthogonal and there is no cancellation. Therefore, the rounding errors in z′z^{\prime} satisfy

z′=v2+2Im⁡(t′)i1−t′‾(1+O(μ))=z′′(1+O(μ)).z^{\prime}=\frac{v^{2}+2\operatorname{Im}(t^{\prime})i}{1-\overline{t^{\prime}}}(1+O(\mu))=z^{\prime\prime}(1+O(\mu)).

Applying a similar analysis to n′n^{\prime}, v^′\widehat{v}^{\prime}, c^′\widehat{c}^{\prime}, s^′\widehat{s}^{\prime} and γ^′\widehat{\gamma}^{\prime} gives

n′=n′′(1+O(μ)),v^′=v^′′(1+O(μ)),c^′=c^′′(1+O(μ)),n^{\prime}=n^{\prime\prime}(1+O(\mu)),\qquad\widehat{v}^{\prime}=\widehat{v}^{\prime\prime}(1+O(\mu)),\qquad\widehat{c}^{\prime}=\widehat{c}^{\prime\prime}(1+O(\mu)),
s^′=s^′′(1+O(μ)),γ^′=γ^′′(1+O(μ)),\widehat{s}^{\prime}=\widehat{s}^{\prime\prime}(1+O(\mu)),\qquad\widehat{\gamma}^{\prime}=\widehat{\gamma}^{\prime\prime}(1+O(\mu)),

before renormalization. For u^′\widehat{u}^{\prime} and σ^′\widehat{\sigma}^{\prime}, extra care has to be taken to account for the difference between σ\sigma and σ′′\sigma^{\prime\prime},

u^′=fl⁡(ρ‾(s2u−γσ2c2))=ρ‾(s2u−γσ2c2)+O(μ)=ρ‾(s2u−γσ′′2(1+O(μ))c2)+O(μ)=u^′′+O(μ),\begin{aligned} \widehat{u}^{\prime}&=\operatorname{fl}\bigl(\overline{\rho}(s^{2}u-\gamma\sigma^{2}c^{2})\bigr)\\ &=\overline{\rho}(s^{2}u-\gamma\sigma^{2}c^{2})+O(\mu)\\ &=\overline{\rho}(s^{2}u-\gamma\sigma^{\prime\prime2}(1+O(\mu))c^{2})+O(\mu)\\ &=\widehat{u}^{\prime\prime}+O(\mu), \end{aligned}
σ^′=fl⁡(−ρσz′/∣z′∣)=−ρσ′′z′′/∣z′′∣(1+O(μ))=σ^′′(1+O(μ)).\widehat{\sigma}^{\prime}=\operatorname{fl}(-\rho\sigma z^{\prime}/|z^{\prime}|)=-\rho\sigma^{\prime\prime}z^{\prime\prime}/|z^{\prime\prime}|(1+O(\mu))=\widehat{\sigma}^{\prime\prime}(1+O(\mu)).

Thus, before renormalization, the ′^{\prime} and ′′^{\prime\prime} variables are O(μ)O(\mu) close. Since they are also nearly-unitary with O(μ)O(\mu) defects, the errors introduced from renormalization, including the additional rounding errors, are relative and O(μ)O(\mu), and the outputs remain within O(μ)O(\mu) of each other.

Lemma 5.1 says that computing Algorithm 4.1 in floating-point arithmetic gives a factorization Q^′U^′Q^′\widehat{Q}^{\prime}\widehat{U}^{\prime}\widehat{Q}^{\prime} that is still within O(μ)O(\mu) of the product of the inputs Q^UQ\widehat{Q}UQ as long as their nearly-unitary defects are also O(μ)O(\mu). As the following corollary shows, the same is true for the square-root-free turnover in Algorithm 4.2.

Corollary 5.2 (Forward Stability of Algorithm 4.2). Assume the matrices Q^\widehat{Q}, UU and QQ are stored in floating point and nearly-unitary with O(μ)O(\mu) defects, and let Q^′\widehat{Q}^{\prime}, U^′\widehat{U}^{\prime} and Q^′\widehat{Q}^{\prime} be the outputs of the symmetric turnover computed implicitly via Algorithm 4.2. Then,

∥Q^UQ−Q^′U^′Q^′∥=O(μ).\left\|\widehat{Q}UQ-\widehat{Q}^{\prime}\widehat{U}^{\prime}\widehat{Q}^{\prime}\right\|=O(\mu).

Proof. The proof follows from Lemma 5.1 and the arguments in Theorem 3.3 and Corollary 4.1.

Backward stability

We are now ready to show backward stability of the symmetric and square-root-free turnovers. The following theorem shows that the previous forward error results can be interpreted as backward errors in the input matrices, as long as they are nearly-unitary.

Theorem 5.3 (Backward Stability of Algorithms 4.1 and 4.2). Let Q~\widetilde{Q}, UU and QQ, and Q^′\widehat{Q}', U^′\widehat{U}' and Q^′\widehat{Q}' be as in Lemma 5.1 and Corollary 5.2. Then, there exists U′U' such that,

Q~U′Q=Q^′U^′Q^′,∥U−U′∥=O(μ).\widetilde{Q}U'Q=\widehat{Q}'\widehat{U}'\widehat{Q}', \qquad\lVert U-U'\rVert=O(\mu).

Proof. By Lemma 5.1, there exists Δ\Delta such that

Q~UQ+Δ=Q^′U^′Q^′,∥Δ∥=O(μ).\widetilde{Q}UQ+\Delta=\widehat{Q}'\widehat{U}'\widehat{Q}', \qquad\lVert\Delta\rVert=O(\mu).

Since Q~\widetilde{Q} and QQ are nearly-unitary, Q~−1\widetilde{Q}^{-1} and Q−1Q^{-1} exist and are also nearly-unitary with O(μ)O(\mu) defects. Define U′U' as,

U′=U+Q~−1ΔQ−1.U'=U+\widetilde{Q}^{-1}\Delta Q^{-1}.

Then,

Q~U′Q=Q^′U^′Q^′,∥U−U′∥=O(μ),\widetilde{Q}U'Q=\widehat{Q}'\widehat{U}'\widehat{Q}', \qquad\lVert U-U'\rVert=O(\mu),

which completes the proof. □

Theorem 5.3 says that computing the symmetric turnover in floating-point arithmetic for inputs that are nearly-unitary with O(μ)O(\mu) defects computes a factorization that is exact for a nearby input matrix U′U'. This means that the symmetric turnover and the entire core-chasing step are backward stable [2]. While UU is a core transformation, U′U' is almost surely not, which means the errors in U−U′U-U' are not confined to the nontrivial block [U][U]. Example 5.4 shows that we cannot expect structured errors for nearly-unitary matrices, so this result is not surprising.

Structured backward error

The question remains as to whether the backward stability in Theorem 5.3 can be further refined into a form of structured backward stability. In the strictest sense this would mean mapping the forward errors in the computed outputs to backward errors on the input parameters that define the core transformations. The following example shows that the symmetric turnover is not, in general, exact for nearly-unitary matrices. This immediately implies that for computed outputs that are only nearly-unitary, there is no way to convert forward errors in the outputs of the turnover into backward errors on the inputs.

Example 5.4 (Impossibility of Structured Backward Error for Nearly-Unitary Outputs). For 0<ϵ<10<\epsilon<1, define the following nearly-unitary output parameters of the symmetric turnover,

u^=1,v^=2ϵ,c^=s^=1/2,σ^=1,γ^=1,ρ=−1.\widehat{u}=1,\qquad\widehat{v}=\sqrt{2\epsilon},\qquad\widehat{c}=\widehat{s}=1/\sqrt{2},\qquad\widehat{\sigma}=1,\qquad\widehat{\gamma}=1,\qquad\rho=-1.

These parameters are all nearly-unitary, so the following product is also nearly-unitary,

Q^U^Q^=[1−ϵϵϵ0−1ϵ10].\widehat{Q}\widehat{U}\widehat{Q}= \begin{bmatrix} 1 & -\sqrt{\epsilon} & \sqrt{\epsilon}\\ \sqrt{\epsilon} & 0 & -1\\ \sqrt{\epsilon} & 1 & 0 \end{bmatrix}.

Suppose there exist input parameters uu, vv, cc, ss, σ\sigma and γ\gamma such that

Q~UQ=Q^U^Q^.\widetilde{Q}UQ=\widehat{Q}\widehat{U}\widehat{Q}.

Expanding the product of the input factors gives

Q~UQ=[ρ‾(s2u−γc2σ2)ρcs(γσ+σ‾u)−ρ‾sv−ρcs(σ+γσ‾u)ρs2−ργc2σ‾2uρ‾γcσvsvcσ‾vu‾].\widetilde{Q}UQ = \begin{bmatrix} \overline{\rho}(s^2u-\gamma c^2\sigma^2) & \rho cs(\gamma\sigma+\overline{\sigma}u) & -\overline{\rho}sv \\ -\rho cs(\sigma+\gamma\overline{\sigma}u) & \rho s^2-\rho\gamma c^2\overline{\sigma}^2u & \overline{\rho}\gamma c\sigma v \\ sv & c\overline{\sigma}v & \overline{u} \end{bmatrix}.

Comparing the (3,3)(3,3) entries gives u‾=0\overline{u}=0, and hence u=0u=0. Comparing the (2,2)(2,2) entries then gives ρs2=0\rho s^2=0. Since ρ=−1\rho=-1, this implies s=0s=0. However, comparing the (1,3)(1,3) entries gives

−ρ‾sv=ϵ.-\overline{\rho}sv=\sqrt{\epsilon}.

Since 0<ϵ<10<\epsilon<1, the right-hand side is nonzero, contradicting s=0s=0. Therefore there exist no input parameters such that

Q~UQ=Q^U^Q^.\widetilde{Q}UQ=\widehat{Q}\widehat{U}\widehat{Q}.

In particular, the nearly-unitary output factors cannot, in general, be interpreted as the exact symmetric turnover of nearby nearly-unitary input core transformations.

Example 5.4 shows that we cannot expect the symmetric turnover to be exact when working with inputs that are only nearly-unitary, even when computed in exact arithmetic. Since the forward errors caused by computing in floating-point arithmetic will almost surely result in outputs that are only nearly-unitary, we cannot expect to be able to find perturbed inputs that make the turnover exact.

Numerical Experiments

In this section we present several numerical experiments to illustrate the effects of removing the square roots from the computations.

Square roots are expensive

The goal of our first experiment is to show why removing square roots is so important. While it is true that the double-precision operations ++, ∗*, // and ⋅\sqrt{\cdot} can all be computed with the same high relative accuracy, the latency, or number of clock cycles it takes to execute each operation, can be quite different, even for modern processors. The results published in [9] suggest that the operations // and ⋅\sqrt{\cdot} require on average 2–5 times more cycles than the operations ++ and ∗* for real, double-precision variables.

Figure 6.1 shows the total clock time for computing 10810^8 sequential operations of each type on an Intel Core i7-4790 processor. Here we clearly see that // and ⋅\sqrt{\cdot} require more time on average than ++ and ∗* when executed sequentially.

Figure 6.1. Total compute time in seconds for executing 10810^{8} sequential, real, double-precision operations of each type on an Intel Core i7-4790 processor.

Square-root-free unitary core-chasing

Our second experiment compares the runtime and accuracy of using four different methods to compute the roots of unity, i.e., the zeros of the polynomial zn=1z^n=1. This can be reformulated as a unitary upper Hessenberg eigenvalue problem using the companion matrix. The four methods we compare are the dense QR algorithm for complex upper Hessenberg matrices zhseqr from LAPACK, the unitary core-chasing algorithm from [3], denoted UQR, and Algorithms 4.1 and 4.2, denoted SYMUQR and RFUQR, respectively. The code for the methods UQR, SYMUQR, and RFUQR is available at github.com/eiscor/eiscor.

Figure 6.2 plots the average runtime and the worst forward error in the computed roots of unity. From the plot of average runtime we can see the difference between the O(n3)O(n^3) complexity of dense QR from LAPACK and the O(n2)O(n^2) algorithms that exploit the special unitary upper Hessenberg structure. From the plot of worst-case forward errors in the computed eigenvalues we can see that all four methods have comparable accuracy, computing approximate eigenvalues that are within a modest multiple of machine precision of the true roots.

Runtime and accuracy for computing the roots of unity using four different algorithms

Figure 6.2. Runtime and accuracy for computing the roots of unity using four different algorithms.

Table 6.1 gives the runtime and accuracy of the four methods for the specific value n=4096n = 4096. From the last three columns it is clear that exploiting the unitary upper Hessenberg structure greatly reduces the overall runtime when compared to LAPACK. The last two columns also show that exploiting symmetry and removing square roots can further reduce the total runtime, even when compared to other methods that exploit this structure.

n=4096n = 4096LAPACKUQRSYMUQRRFUQR
Runtime (sec)6291.020.850.65
Accuracy3.3×10−143.3 \times10^{-14}4.2×10−144.2 \times10^{-14}1.7×10−131.7 \times10^{-13}7.5×10−147.5 \times10^{-14}

Table 6.1. Runtime and accuracy of the four methods for the case n=4096n = 4096.

Conclusions

In this article we presented a matrix-based derivation of a square-root-free unitary core-chasing algorithm for computing eigenvalues of unitary upper Hessenberg matrices. The derivation is based on a symmetry in the turnover operation used in the unitary core-chasing algorithm from [3], which reduces the arithmetic needed to perform the core-chasing step and exposes the connection with square-root-free QR algorithms for symmetric tridiagonal matrices. We showed that the naïve symmetric turnover formulas can be unstable when the core transformations are only nearly-unitary, as occurs in floating-point arithmetic, and introduced a change of variables, analogous to Gragg’s stabilized recurrence, that avoids this cancellation and leads to a stable symmetric turnover for nearly-unitary data. The same change of variables also makes it possible to derive a square-root-free version of the algorithm. The floating-point analysis shows that both the symmetric and square-root-free turnovers are stable for nearly-unitary input, and that the resulting forward error can be converted into a local backward error result for the turnover, although a strict structured backward error result is impossible in general. Finally, the numerical experiments demonstrate that the combination of exploiting the symmetry in the turnover and casting out square roots gives accuracy comparable to LAPACK and to the unitary core-chasing algorithm in [3], while reducing the overall runtime.

Acknowledgments. OpenAI ChatGPT was used during the preparation of this manuscript to assist with checking mathematical derivations, exploring examples, literature searches, and improving the presentation of the manuscript. All mathematical arguments, references, computations, and conclusions were independently reviewed and verified by the authors. The authors assume responsibility for all content.

References

References

  1. [1]G. S. Ammar, W. B. Gragg, and L. Reichel, On the eigenproblem for orthogonal matrices, in Proc. 25th IEEE Conf. Decision Control, 1986, pp. 1963–1966, https://doi.org/10.1109/CDC.1986.267356.
  2. [2]J. L. Aurentz, T. Mach, L. Robol, R. Vandebril, and D. S. Watkins, Core-chasing Algorithms for the Eigenvalue Problem, SIAM, Philadelphia, PA, 2018, https://doi.org/10.1137/1.9781611975345.
  3. [3]J. L. Aurentz, T. Mach, R. Vandebril, and D. S. Watkins, Fast and stable unitary QR algorithm, Electron. Trans. Numer. Anal., 44 (2015), pp. 327–341, https://etna.ricam.oeaw.ac.at/volumes/2011-2020/vol44/pp327-341.dir/pp327-341.pdf.
  4. [4]B. Bohnhorst, Ein Lanczos-ähnliches Verfahren zur Lösung des unitären Eigenwertproblems, PhD thesis, Universität Bielefeld, 1993, https://pub.uni-bielefeld.de/record/1784310.
  5. [5]A. Bunse-Gerstner, An algorithm for the unitary eigenproblem, Numer. Math., 45 (1984), pp. 1–12, https://doi.org/10.1007/BF01389710.
  6. [6]J. J. M. Cuppen, A divide-and-conquer method for the symmetric tridiagonal eigenproblem, Numer. Math., 36 (1980), pp. 177–195, https://doi.org/10.1007/BF01396757.
  7. [7]A. Dubrulle, R. S. Martin, and J. H. Wilkinson, The implicit QL algorithm, Numer. Math., 12 (1968), pp. 377–383, https://doi.org/10.1007/BF02161260.
  8. [8]Y. S. Feng, Stability analysis of some root-free QR algorithms for symmetric tridiagonal matrices, PhD thesis, University of California-Berkeley, 1991, https://www.proquest.com/dissertations-theses/stability-analysis-root-free-qr-algorithms/docview/303926557.
  9. [9]A. Fog, Instruction tables: Lists of instruction latencies, throughputs, and micro-operation breakdowns for Intel, AMD, and VIA CPUs, 2025, https://www.agner.org/optimize/instruction_tables.pdf.
  10. [10]H. H. Goldstine and L. P. Horwitz, A procedure for the diagonalization of normal matrices, J. ACM, 6 (1959), pp. 176–195, https://doi.org/10.1145/320964.320975.
  11. [11]G. H. Golub and C. F. Van Loan, Matrix Computations, Johns Hopkins University Press, Baltimore, MD, 4th ed., 2013, https://doi.org/10.56021/9781421407944.
  12. [12]W. B. Gragg, The QR algorithm for unitary Hessenberg matrices, J. Comput. Appl. Math., 16 (1986), pp. 1–8, https://doi.org/10.1016/0377-0427(86)90169-X.
  13. [13]W. B. Gragg, Stabilization of the UHQR algorithm, tech. report, Naval Postgraduate School, 1997, https://apps.dtic.mil/sti/pdfs/ADA329745.pdf.
  14. [14]W. B. Gragg, Stabilization of the UHQR algorithm, Adv. Comput. Math., 10 (1999), pp. 139–154, https://doi.org/10.1023/A:101893927025.
  15. [15]W. B. Gragg and L. Reichel, A divide and conquer method for unitary and orthogonal eigenproblems, Numer. Math., 57 (1990), pp. 695–718, https://doi.org/10.1007/BF01386438.
  16. [16]N. J. Higham, Accuracy and Stability of Numerical Algorithms, SIAM, Philadelphia, PA, 2002, https://doi.org/10.1137/1.9780898718027.
  17. [17]C. G. J. Jacob, Über einige Verfahren die in der theorie der säcularstörungen vorkommenden gleichungen numerisch aufzulösen, J. Reine Angew. Math., 30 (1846), pp. 51–94, https://eudml.org/doc/147275.
  18. [18]C. Lanczos, An Iteration Method for the Solution of the Eigenvalue Problem of Linear Differential and Integral Operators, U.S. Government Printing Office, Washington, DC, 1950, https://resolver.caltech.edu/CaltechAUTHORS:20140819-111140202.DOI
  19. [19]J. M. ORTEGA AND H. F. KAISER, The LL^T and QR methods for symmetric tridiagonal matrices, Comput. J., 6 (1963), pp. 99–101, https://doi.org/10.1093/comjnl/6.1.99.
  20. [20]B. N. PARLETT, The Symmetric Eigenvalue Problem, SIAM, Philadelphia, PA, 1998, https://doi.org/10.1137/1.9781611971163.
  21. [21]M. STEWART, An error analysis of a unitary Hessenberg QR algorithm, Technical Report TR-CS-98-11, The Australian National University, Canberra, Australia, Dec. 1998, http://hdl.handle.net/1885/40737. Joint Computer Science Technical Report Series, Department of Computer Science, Faculty of Engineering and Information Technology, and Computer Sciences Laboratory, Research School of Information Sciences and Engineering.
  22. [22]M. STEWART, Stability properties of several variants of the unitary Hessenberg QR algorithm, Contemp. Math., 281 (2001), pp. 57–72, https://doi.org/10.1090/conm/281/04649.
  23. [23]M. STEWART, An error analysis of a unitary Hessenberg QR algorithm, SIAM J. Matrix Anal. Appl., 28 (2006), pp. 40–47, https://doi.org/10.1137/04061948X.
  24. [24]T. WANG AND W. B. GRAGG, Convergence of the shifted QR algorithm for unitary Hessenberg matrices, Math. Comp., 71 (2002), pp. 1473–1496, https://doi.org/10.1090/S0025-5718-01-01387-4.

Paper details

vlnc:W_sh7dhmsw
Version
v1 · latest
Published
Fresh — added to the Hub within the last 30 days
Added
License
CC BY-SA 4.0
Usage

views · 3

downloads · 0

A view counts once per browser per day, a download each time the PDF is requested.

  • Mathematics

OpenAI ChatGPT

View statement
Looking for related papers…
Contents