Full text
ON CIRCULANT AND SKEW-CIRCULANT SPLITTING ALGORITHMS FOR (CONTINUOUS) SYLVESTER EQUATIONS ∗ ZHONGYUN LIU†, FANG ZHANG∗, YULIN ZHANG‡,AND CARLA FERREIRA‡ Abstract. We present a circulant and skew-circulant splitting (CSCS) iterative method for solving large sparse continuous Sylvester equations AX +XB =C, where the coefficient matrices Aand Bare Toeplitz matrices. A theoretical study shows that if the circulant and skew-circulant splitting factors of Aand Bare positive semi-definite and at least one is positive definite (not necessarily Hermitian), then the CSCS method converges to the unique solution of the Sylvester equation. In addition, we obtain an upper bound for the convergence factor of the CSCS iteration. This convergence factor depends only on the eigenvalues of the circulant and skew-circulant splitting matrices. A computational comparison with alternative methods reveals the efficiency and reliability of the proposed method. The numerical tests show the reliability of the proposed method Key words. Continuous Sylvester equations, CSCS iteration, Toeplitz matrices, convergence AMS subject classifications. 15A24, 65F10, 65H10 1. Introduction. A continuous Sylvester equation is possibly one of the most popular linear matrix equations used in mathematics. It is a matrix equation of the form AX +XB =C, (1.1) where matrices A∈Cn×n,B∈Cm×m,C∈Cn×mare given and the problem is to find a matrix X∈Cn×m that obeys this equation. It is well-known that equation (1.1) has a unique solution for Xif and only if A and −Bdo not have common eigenvalues (see, e.g., [22, 26]). The Sylvester equation is classically employed in the design of Luenberger observers, which are widely used in signal processing, control and system theory (see, e.g., [6, 8, 10, 16, 19]); often appears in linear and generalized eigenvalue problems for the Riccati equation in the computation of invariant subspaces (see, e.g., [36]); can be used to devise implicit Runge-Kutta integral formulae and block multi-step formulae for the numerical solutions of ordinary differential equations (see, e.g., [18]); and some linear systems arising, for example, from finite difference discretizations of separable elliptic boundary value problems on rectangular domains, can be written as a Sylvester equation (see, e.g., [14, 17]). There are essentially two different approaches to deal with the Sylvester equation (1.1). The first approach consists in vectorizing the unknown matrix Xand translating the matrix equation into a linear system Ax=c, where vectors xand care the column-stacking vectors of the matrices Xand C, respectively, and Ais the Kronecker sum of the matrices Aand BT, that is, A=Im⊗A+BT⊗In, with symbol ⊗ denoting the standard Kronecker product. Either direct or iterative methods can be applied to solve this linear system. The second approach is to treat the Sylvester equation (1.1) in its original form using an iterative method directely applied to matrices A,Band C. ∗The research of the last two authors was partially financed by Portuguese Funds through FCT (Funda¸c˜ao para a Ciˆencia e a Tecnologia) within the Projects UIDB/00013/2020 and UIDP/00013/2020. This work was also supported by NSFC (National Natural Science Foundation of China) under the Grant No. 11371075, the Hunan Key Laboratory of Mathematical Modeling and Analysis in Engineering. †School of Mathematics and Statistics, Changsha University of Science and Technology, Changsha 410076, P. R. China ([email protected]). ‡Centro de Matem´atica, Universidade do Minho, 4710-057 Braga, Portugal ([email protected], [email protected]). 1
2Z. Y. Liu, F. Zhang, C. Ferreira and Y.L. Zhang When matrices Aand Bare large, the order of the coefficient matrix A∈Cmn×mn in the linear system Ax=cwill be considerably larger and, in general, difficulties related to data storage and computational time arise. This explains that the first approach is mainly used in problems of small or medium dimension. The Bartels-Stewart method proposed in [7] is based on the reduction of the matrices Aand Bto real Schur form (quasi-triangular form) using the QR algorithm for eigenvalues, followed by the use of direct methods to solve several linear systems. The Hessenberg-Schur method, presented in [20], reduces matrix A to Hessenberg form and only matrix Bis decomposed into the quasi-triangular Shur form ant it is faster then the Bartels-Stewart method. However, in both methods, the authors were unable to establish a backward stability result. These methods are classsified as direct methods and are used by Matlab. When matrices Aand Bare large and sparse, following the second approach, iterative methods such as the Smith’s method [35], the alternating direction implicit method (ADI) [9, 12, 23, 29, 38], the block successive over-relaxation method (BSOR) [33] and the matrix splitting methods [1, 21] are efficient and accurate methods of choice to obtain a numerical solution of the equation (1.1). The development of the mentioned iterative methods based on the concept of matrix splitting has attracted several scholars and a large number of efficient and robust algorithms were proposed. See [2, 27, 28, 39, 42] and references therein. In this paper, we consider the case when Aand Bare both Toeplitz matrices. Matrices with this structure appear, for example, in connection to the discretization of the convection-diffusion reaction equation [14, 17]. We present an iterative method for solving the Sylvester equation (1.1) using the circulant and skew-circulant splittings of the matrices Aand B. This circulant and skew-circulant splitting (CSCS) iteration method is a matrix variant of the CSCS iteration method firstly proposed in [31] for solving a Toeplitz linear system. These type of methods are conceptually analogous to the ADI iteration methods. Via this CSCS iteration method, the problem of solving a general continuous Sylvester equation is translated into two coupled continuous Sylvester equations involving shifted circulant and skew-circulant matrices. When the circulant and skew-circulant splitting matrices of Aand Bare positive definite (not necessarily Hermitian), we prove that the CSCS iteration converges unconditionally to the exact solution of the Sylvester equation (1.1). Moreover, the values of the shift parameters that minimize an upper bound for the contraction factor are obtained in terms of the bounds for the largest and the smallest eigenvalues of the circulant and skew-circulant splitting matrices of Aand B. The organization of this paper is as follows. After giving some basic definitions and preliminary results in section 2, we describe the CSCS iterative method for solving equation (1.1) in section 3. We then analyze some conditions that ensure the convergence of this method in section 4. Numerical experiments are shown in section 5. These examples illustrate the efficiency and robustness of our method. 2. Basic definitions and preliminary results. Given a matrix K∈Cn×m,K∗denotes the conjugate transpose of K, the (i, j) element of Kis denoted by Ki,j and ρ(K) stands for the spectral radius of K. The set of all the eigenvalues of Kis represented by λ(K). If x∈C, Re(x) denotes the real part of xand Im(x) the imaginary part. Here we use the general concept of positive definiteness which says that a matrix K∈Cn×nis positive definite if its Hermitian part 1 2(K+K∗) is positive definite in the narrower sense. In general, this condition is equivalent to Re(z∗Kz)>0, for all nonzero vectors z∈C, which implies that Re(λ)>0, for any eigenvalue λof K. A square matrix Tis said to be Toeplitz (or diagonal-constant) when Tj,k =tj−k,j, k = 1, . . . , n, for constants t1−n, . . . , tn−1. An important property of a Toeplitz matrix Tis that it always admits the additive decomposition T=CT+ST,(2.1)
Circulant and skew-circulant splitting algorithms 3 where CTis a circulant matrix and STis a skew-circulant matrix. See [31, 32]. We say that a matrix Cis a circulant matrix if Cj,k =cj−k, for constants c1−n, . . . , cn−1such that c−l=cn−l,l= 1, . . . , n −1. That is, a circulant matrix is a Toeplitz matrix that is fully defined by its first column (or row) given that the remaining columns are cyclic permutations of the first column (or row). A skew-circulant matrix is also a particular type of Toeplitz matrix. We say that a matrix Sis a skew-circulant matrix if Sj,k =sj−k, for constants s1−n, . . . , sn−1such that s−l=−sn−l,l= 1, . . . , n −1. Matrices CTand STin (2.1), the circulant and skew-circulant splitting (CSCS) of T, are defined as follows: (CT)j,k =1 2 t0,if j=k, tj−k+tj−k+n,if j < k, tj−k+tj−k−n,if j > k, and (ST)j,k =1 2 t0,if j=k, tj−k−tj−k+n,if j < k, tj−k−tj−k−n,if j > k. (2.2) It is well-known that a circulant matrix Cis diagonalizable by the unitary Fourier matrix Fof order n which entries are given by Fj,k =1 √nω(j−1)(k−1), j, k = 1, . . . , n, where ωis the primitive n-th root of unit ω=e 2π ni,i=√−1. Similarly, a skew-circulant matrix Sis diagonalizable by the unitary matrix ˆ F=FD where D= diag(1,e π ni,...,e (n−1)π ni). Thus, C=F∗ΛFand S=ˆ F∗Σˆ F, (2.3) where Λ and Σ are diagonal matrices holding the eigenvalues of Cand S, respectively. Moreover, we note that Λ and Σ can be obtained in O(nlog n) operations by taking the fast Fourier transform (FFT) of the first column (or row) of Cand first row of S, respectively. In fact, the diagonal entries λjof Λ and the diagonal entries σjof Σ are given, respectively, by λj= n X k=1 ck−1ω(j−1)(k−1) and σj= n X k=1 sk−1ω(j−1)(k−1) e π(k−1) ni, j = 1, . . . , n. (2.4) See, for instance, [13, 15]. For the FFT algorithm, we refer to [30, 37]. Once Λ and Σ are obtained, the products Cxand C−1x, as well as Sxand S−1x, for any vector x, can be computed by FFTs in O(nlog n) operations. Therefore, the use of circulant and skew-circulant matrices to solve matrix equations with Toeplitz matrices allows to improve the efficiency by employing FFTs throughout the computations. For a matrix M∈Cn×m, the FFT operation is applied to each column in O(mn log n). 3. CSCS Iteration. Let matrices A∈Cn×nand B∈Cm×mhave a Toeplitz structure and let A=CA+SA, B =CB+SB(3.1) be the circulant and skew-circulant splittings of Aand B(CSCS), respectively. There are no constraints in using (2.2), so these splittings always exist. If αand βare positive constants, the following splittings are also CSCS splittings of Aand B, A= (CA+αIn)+(SA−αIn), B = (CB+βIm)+(SB−βIm),(3.2) A= (CA−αIn)+(SA+αIn), B = (CB−βIm)+(SB+βIm).(3.3)
4Z. Y. Liu, F. Zhang, C. Ferreira and Y.L. Zhang It follows that if X∗∈Cn×mis the exact solution of the Sylvester equation (1.1), then ((CA+αI)X∗+X∗(CB+βI)=(αI −SA)X∗+X∗(βI −SB) + C (SA+αI)X∗+X∗(SB+βI)=(αI −CA)X∗+X∗(βI −CB) + C where Iis either the identity matrix of order nor m, conformable to CAor CB, respectively. We are now able to define the fixed-point matrix equations ((CA+αI)X+X(CB+βI) = (αI −SA)Y+Y(βI −SB) + C (SA+αI)Y+Y(SB+βI) = (αI −CA)X+X(βI −CB) + C(3.4) such that X∗is the fixed point of both equations. The reverse also accurs, that is, if X∗is a fixed point of either of the two equations in (3.4), then it is the exact solution of (1.1). See [4, Theorem 3.1]. The CSCS iteration method is defined as follows. CSCS iteration method. Given an initial approximation X(0) and positive constants α,β (shift parameters), repeat the iterative scheme (αI +CA)X(k+1 2)+X(k+1 2)(βI +CB)=(αI −SA)X(k)+X(k)(βI −SB) + Csolve for X(k+1 2) (αI +SA)X(k+1) +X(k+1)(βI +SB) = (αI −CA)X(k+1 2)+X(k+1 2)(βI −CB) + Csolve for X(k+1) (3.5) for k= 0,1,2,··· ,until X(k)converges. An alternative version of this two-step iteration is obtained if we compute the corrections Z(k+1 2)= X(k+1 2)−X(k)and Z(k+1) =X(k+1) −X(k+1 2)in each iteration which brings the residuals R(k)and R(k+1 2) into the computation. The iterative scheme is changed to R(k)=C−AX(k)−X(k)B (αI +CA)Z(k+1 2)+Z(k+1 2)(βI +CB) = R(k)solve for Z(k+1 2) X(k+1 2)=X(k)+Z(k+1 2) R(k+1 2)=C−AX(k+1 2)−X(k+1 2)B (αI +SA)Z(k+1) +Z(k+1)(βI +SB) = R(k+1 2)solve for Z(k+1) X(k+1) =X(k+1 2)+Z(k+1) (3.6) Each CSCS iteration requires the solution of two Sylvester equations. In the first step Z(k+1 2)is the solution of the equation (αI +CA)Z+Z(βI +CB) = R(k)(3.7) and in the second step Z(k+1) is the solution of the equation (αI +SA)Z+Z(βI +SB) = R(k+1 2).(3.8) The method alternates between equation (3.7), with circulant matrices CAand CB, and equation (3.8), with skew-circulant matrices SAand SB, and we can reverse the roles of these matrix equations. Observe that once we compute the eigenvalues of CAand CB, it is always possible to choose positive constants αand βsuch that αI +CAand −(βI +CB) do not have eigenvalues in common and thus the matrix equation (3.7) has a unique solution. A similar observation applies to the matrix equation (3.8) concerning the matrices αI +SAand −(βI +SB).
Circulant and skew-circulant splitting algorithms 5 Obtained the eigenvalue decompositions, see (2.3), CA=F∗ AΛAFA, CB=F∗ BΛBFB, SA=ˆ F∗ AΣAˆ FA, SB=ˆ F∗ BΣBˆ FB,(3.9) equation (3.7) is equivalent to (αI + ΛA)Z+Z(βI + ΛB) = R(k)(3.10) where Z=FAZF∗ Band R(k)=FAR(k)F∗ B; and equation (3.8) is equivalent to (αI + ΣA)Z+Z(βI + ΣB) = R(k+1 2)(3.11) where Z=ˆ FAZˆ F∗ Band R(k+1 2)=ˆ FAR(k+1 2)ˆ F∗ B. Solving the Sylvester equations (3.10) and (3.11) is immediate since these matrix equations can be translated into linear systems with diagonal coefficent matrices, Im⊗(αIn+ ΛA) + (βIm+ ΛB)T⊗Inand Im⊗(αIn+ ΣA)+(βIm+ ΣB)T⊗In, respectively. The solutions of the initial Sylvester equations (3.7) and (3.8) are given by Z=F∗ AZFB, for Zsatisfying (3.10), and Z=ˆ F∗ AZˆ FB, for Zsatisfying (3.11), respectively. These products can be computed efficiently using FFTs. It is also possible, once again using FFTs, to reduce the computational effort associated to the right-hand side of the two Sylvester equations involved in each CSCS iteration, equations (3.10) and (3.11). For an approximation X(j), the residual R(j)can be computed using the decomposition R(j)=C−(CA+SA)X(j)−X(j)(CB+SB) =C−F∗ AΛAFAX(j)−ˆ F∗ AΣAˆ FAX(j)−X(j)F∗ BΛBFB−X(j)ˆ F∗ BΣBˆ FB.(3.12) Thus, the right-hand sides of equations (3.10) and (3.11) are given, respectively, by R(k)=FAhC−F∗ AΛAFAX(k)−ˆ F∗ AΣAˆ FAX(k)−X(k)F∗ BΛBFB−X(k)ˆ F∗ BΣBˆ FBiF∗ B(3.13) and R(k+1 2)=ˆ FAhC−F∗ AΛAFAX(k+1 2)−ˆ F∗ AΣAˆ FAX(k+1 2)−X(k+1 2)F∗ BΛBFB−X(k+1 2)ˆ F∗ BΣBˆ FBiˆ F∗ B.(3.14) Given an initial approximation X(0), positive constants α,β, and the spectral factorizations (3.9), the two steps of the CSCS iteration (3.6) can then be expressed as Use (3.13) to compute R(k) (αI + ΛA)Z+Z(βI + ΛB) = R(k)(solve for Z) X(k+1 2)=X(k)+F∗ AZFB Use (3.14) to compute R(k+1 2) (αI + ΣA)Z+Z(βI + ΣB) = R(k+1 2)(solve for Z) X(k+1) =X(k+1 2)+ˆ F∗ AZˆ FB (3.15) for k= 0,1,2,··· ,until X(k)converges. Notice that all the matrix multiplications can be performed using FFTs and thus the operation count is O(mn log n) (or O(nm log m), depending on which is bigger). There is no need to perform explicit matrix multiplications. See Algorithm 1 in Appendix A for a Matlab implemention of CSCS.
6Z. Y. Liu, F. Zhang, C. Ferreira and Y.L. Zhang 4. Convergence results. Using a matrix-vector formulation of the Sylvester equation (1.1), such that vectors xand care the column-stacking vectors of the matrices Xand C, respectively, the two-step iterative CSCS scheme (3.5) can be rewritten as (Im⊗(αI +CA)+(βI +CB)T⊗Inx(k+1 2)=Im⊗(αI −SA)+(βI −SB)T⊗Inx(k)+c Im⊗(αI +SA)+(βI +SB)T⊗Inx(k+1 =Im⊗(αI −CA)+(βI −CB)T⊗Inx(k+1 2)+c(4.1) for k= 0,1,2,··· ,until x(k)converges, given an initial approximation x(0) and positive constants α,β. In this section we will establish theoretical results concerning the convergence conditions of the CSCS iteration and our analysis is based on this matrix-vector formulation of the method. So, we are considering the linear system Ax=c, equivalent to the Sylvester equation (1.1), where A=Im⊗A+BT⊗In, and the two splittings of the matrix A, A=Im⊗(αI +CA)+(βI +CB)T⊗In−Im⊗(αI −SA)+(βI −SB)T⊗In, A=Im⊗(αI +SA)+(βI +SB)T⊗In−Im⊗(αI −CA)+(βI −CB)T⊗In, corresponding to the CSCS splittings of Aand Bgiven in (3.2). Using the bilinearity property of the kronecker product, these decompositions of Acan be rewritten as A=(α+β)Imn +Im⊗CA+CT B⊗In−(α+β)Imn −Im⊗SA+ST B⊗In, A=(α+β)Imn +Im⊗SA+ST B⊗In−(α+β)Imn −Im⊗CA+CT B⊗In. Thereby, defining e C=Im⊗CA+CT B⊗Inand e S=Im⊗SA+ST B⊗In, we have A=(α+β)I+e C−(α+β)I−e S, A=(α+β)I+e S−(α+β)I−e C,(4.2) where Irepresents the identity matrix of order mn, and the iteration (4.1) can be expressed as ((α+β)I+e Cx(k+1 2)=(α+β)I−e Sx(k)+c (α+β)I+e Sx(k+1 =(α+β)I−e Cx(k+1 2)+c.(4.3) This iterative scheme is a particular case of a more general two-step splitting scheme defined by (M1x(k+1 2)=N1x(k)+c M2x(k+1) =N2x(k+1 2)+c, k = 0,1,2,..., (4.4) assuming that Aadmits the decompositions A=Mi−Ni,i= 1,2, with M1and M2invertible matrices. The sequence x(k)generated by (4.4) satisfies x(k+1) =Mx(k)+Cc, k = 0,1,2,..., (4.5) where M=M−1 2N2M−1 1N1and C=M−1 2I+N2M−1 1.(4.6) Matrix Mis called the iteration matrix and it is well-kown that x(k)converges to the exact solution of the linear system Ax=cif and only if ρ(M)<1, for any initial approximation x(0) ∈Cmn [34, 40] . We will prove that when e C=Im⊗CA+CT B⊗Inand e S=Im⊗SA+ST B⊗Inare positive definite matrices (the real part of the eigenvalues is positive), then the proposed CSCS iterative method converges.
Circulant and skew-circulant splitting algorithms 7 Theorem 4.1. Let A∈Cn×nand B∈Cm×mbe Toeplitz matrices such that A=CA+SAand B=CB+SBare the circulant and skew-circulant splittings of Aand B, respectively. Consider the linear system Ax=c, where A=Im⊗A+BT⊗In, equivalent to the Silvester equation (1.1), and the splitting A=e C+e S, where e C=Im⊗CA+CT B⊗Inand e S=Im⊗SA+ST B⊗In.(4.7) Let α,βbe two positive constants and γ=α+β. Then the iteration matrix of the CSCS scheme (4.3) is Mγ=γI +e S−1γI −e CγI +e C−1γI −e S(4.8) and its spectral radius ρ(Mγ)is bounded by σγ≡max λj∈λ(˜ C) γ−λj γ+λj·max µj∈λ(˜ S) γ−µj γ+µj. If e Cis positive definite and e Sis positive semi-definite (or vice-versa), then ρ(Mγ)≤σγ<1,for all γ > 0, and, thus, the CSCS iteration (4.3) converges to the exact solution x?of the linear system Ax=c. The equivalent CSCS iteration (3.5) converges to the exact solution X?∈Cm×nof the Sylvester equation (1.1). Proof. Given γ=α+β, the CSCS iteration (4.3) can be rewritten as (γI +e Cx(k+1 2)=γI −e Sx(k)+c γI +e Sx(k+1) =γI −e Cx(k+1 2)+c(4.9) which is the two-step splitting iterative scheme (4.4) to solve the linear system Ax=cwith M1=γI +e C, N1=γI −e S,M2=γI +e Sand N2=γI −e C. According to (4.5) and (4.6), the two steps of iteration (4.9) can be put together into the stationary fixed-point iteration x(k+1) =Mγx(k)+Cγc, k = 0,1,2,..., (4.10) where Mγ=γI +e S)−1γI −e CγI +e C−1γI −e Sand Cγ= 2γγI +˜ S−1γI +˜ C−1. The spectral radius ρ(Mγ) governs the convergence of (4.10) and, since the spectrum of a matrix is invariant under a similarity transformation, we find that ρ(Mγ) = ργI −e CγI +e C−1γI −e SγI +e S−1 ≤ γI −e CγI +e C−1γI −e SγI +e S−1 2 ≤ γI −e CγI +e C−1 2· γI −e SγI +e S−1 2. (4.11) Since CA,CB,FAand FBare diagonalizable by the Fourier-type matrices FA,FB,ˆ FAand ˆ FB, respectively, (see (2.3)), then e Cis diagonalizable by FB⊗FAand e Sby ˆ FB⊗ˆ FA[22], e C= (FB⊗FA)∗Λe C(FB⊗FA),e S= ( ˆ FB⊗ˆ FA)∗Σe S(ˆ FB⊗ˆ FA),(4.12) where Λe C=I⊗ΛA+ ΛB⊗Iand Σe S=I⊗ΣA+ ΣB⊗I.
8Z. Y. Liu, F. Zhang, C. Ferreira and Y.L. Zhang Thus, by (4.12) and the invariance of the matrix 2-norm under a unitary similarity, γI −e CγI +e C−1 2= γI −Λe CγI + Λ e C−1 2= max λk∈λ( e C) γ−λk γ+λk, γI −e SγI +e S−1 2= γI −Σe SγI + Σe S−1 2= max µk∈λ( e S) γ−µk γ+µk. For λk=ak+ibk∈λ(e C) and µk=ck+idk∈λ(e S), k= 1, . . . , mn, we have ak>0, ck≥0 (or ak≥0, ck>0), by the assumption that e Cis positive definite and e Sis positive semi-definite (or vice-versa), and then γ−λk γ+λk=s(γ−ak)2+b2 k (γ+ak)2+b2 k <1 (≤1), γ−µk γ+µk=s(γ−ck)2+d2 k (γ+ck)2+d2 k≤1 (<1), since γ > 0. As a consequence, σγ:= max λk∈λ( e C) γ−λk γ+λk·max µk∈λ( e S) γ−µk γ+µk<1.(4.13) Finally, (4.11) yields ρ(Mγ)≤σγ<1 which ensures that the CSCS iteration (4.3) converges to the exact solution x?of the linear system Ax=c and that the CSCS iteration (3.5), which is equivalent to (4.3), converges to the exact solution X?∈Cm×n of the Sylvester equation (1.1). Corollary 4.2. If one of the matrices CA,CB,SAand SBis positive definite and all the others are positive semi-definite, then the CSCS iteration (3.5) converges to the exact solution X?∈Cm×nof the Sylvester equation (1.1). Proof. Recall that given two matrices G∈Cn×nand H∈Cm×mwith eigenvalues λi,i= 1, . . . , n, and µj, j = 1, . . . , m, respectively, the eigenvalues of the Kronecker sum G⊕H=Im⊗G+H⊗Inare the pairwise sums λi+µj,i= 1, . . . , n, j = 1, . . . , m (see, e.g., [22]). Using this property, it is immediate to conclude, for example, that if Gis positive definite and His positive semi-definite, then G⊕His positive definite. In fact, Re(λj)>0 and Re(µj)≥0 imply that Re(λi+µj) = Re(λi) + Re(µj)>0. Suppose that CAis positive definite and CB,SAand SBare all positive semi-definite. Then e C=CA⊕CT B and e S=SA⊕ST B, defined in (4.7), are positive definite and positive semi-definite, respectively. According to Theorem 4.1, the spectral radius ρ(Mγ) of the iteration matrix Mγin (4.8) is less than 1 and the CSCS iteration (3.5) converges. All the other cases are similar. Next theorem addresses the issue of how to obtain a value for γ=α+β(and naturally for αand β) that leads to a good convergence speed. Remark 4.1. Let λk=ak+ibk∈λ(e C) and µk=ck+idk∈λ(e S), k= 1, . . . , mn, satisfy θmin ≤ak, ck≤θmax and ηmin ≤ |bk|,|dk| ≤ ηmax,(4.14) where θmin and θmax are the lower and upper bounds, respectively, of the real part of the eigenvalues λ(e C)∪λ(e S), and ηmin and ηmax are the lower and the upper bounds, respectively, of the absolute values of the imaginary part of the eigenvalues λ(e C)∪λ(e S). A bound for σγis given by max (θ,η)∈Ω (γ−θ)2+η2 (γ+θ)2+η2(4.15)
Circulant and skew-circulant splitting algorithms 9 where Ω = [θmin, θmax]×[ηmin, ηmax], since σγ≤max λk∈λ( e C)∪λ( e S) γ−λk γ+λk·max µk∈λ( e C)∪λ( e S) γ−µk γ+µk= max λk∈λ( e S)∪λ( e C) γ−λk γ+λk 2 . We may consider that the optimal choice γ?for the shift parameter γis the value that minimizes the above estimate (4.15). The following theorem gives an explict formula for γ?, if θmin >0. Theorem 4.3. If θmin ≥0, the minimum value min γ>0max (θ,η)∈Ω (γ−θ)2+η2 (γ+θ)2+η2 is attained at γ?= pθminθmax −η2 max for ηmax <˜η pθ2 min +η2 max for ηmax ≥˜η, (4.16) and it is equal to σ?= θmin +θmax −2pθminθmax −η2 max θmin +θmax + 2pθminβmax −η2 max for ηmax <˜η, pθ2 min +η2 max −θmin pθ2 min +η2 max +θmin for ηmax ≥˜η. where ˜η=pθmin(θmax −θmin)/2. The proof of this theorem can be found in [4, pp. 324–326] and [3]. Concerning the choice of the shift parameters αand βin the CSCS method, to choose α=β=γ?/2, where γ?is computed using (4.16), seems to be a natural choice in the case that Aand Bhave approximate norms. In practice Theorem 4.3 gives an efficent procedure to compute αand βsince we have the explicit formulae for the eigenvalues of the matrices CA,CB,SAand SB(see (2.4)) and we use these formulae to implement CSCS. Thus we can obtain the eigenvalues of e Cand e Sas a byproduct and verify if the sufficient condition for convergence given by Theorem 4.1 is satisfied. See Algorithm 4 in Appendix A. Notice that the case θmin = 0 brings no difficulty in computing γ?- when θmin = 0, we have ˜η= 0 and γ?=ηmax. 5. Numerical results. In this section we illustrate the performance of the CSCS algorithm exhibiting some numerical examples. We compare the computational behavior of this method with the Hermitian and skew-Hermitian splitting iteration (HSS) [2] and with a block variant of the Symmetric Successive Over- Relaxation scheme (BSSOR) [25, 33, 41, 40]. All the algorithms were implemented in Matlab (R2020b) in double precision (unit roundoff ε= 2.2 10−16) on a LAPTOP-KVSVAUU8 with an Intel(R) Core(TM) i5-8250U CPU @ 1.60GHz and 8 GB RAM, under Windows 10 Home. See Appendix A for details on the Matlab implementations (Algorithms 1, 5 and 6 for CSCS, HSS and BSSOR, respectively). No parallel Matlab operations were used. The built-in functions fft and ifft (Discrete Fourier transform and its inverse) were used in CSCS, in particular to compute the residual R=C−AX −XB (see Algorithm 3 in Appendix A). The use of sparse techniques is an alternative way to compute the residual C−AX −XB. Indeed, if our matrices are stored in sparse format (even if only A,Band C), then Matlab will automatically use highly efficient multiplication. The advantage of using Discrete Fourier transforms over these sparse techniques can only be observed for dense Toeplitz matrices (matrices with a low sparsity pattern or full matrices). See Example 5.4.
16 Z. Y. Liu, F. Zhang, C. Ferreira and Y.L. Zhang [22] R. A. Horn and C. R. Johnson,Topics in Matrix Analysis, Cambridge University Press, Cambridge, UK, 1991. [23] D.-Y. Hu and L. Reichel, Krylov-subspace methods for the Sylvester equation, Linear Algebra Appl., 172 (1992), pp. 283–313. [24] K. Jbilou, Low rank approximate solutions to large Sylvester matrix equations, Appl. Math. Comput., 177 (2006), pp. 365–376. [25] S. Kadry and Z. Woznicki, On Discussion of SOR Method for Solving the Sylvester Equation, Int. J. Soft Comput., 2(2) (2007), 236–242. [26] P. Lancaster and M. Tismenetsky, The Theory of Matrices, 2nd edition, Academic Press, Orlando, 1985. [27] Z. Y. Liu, Y. Zhou and Y. L. Zhang, On inexact ADI iteration for continuous Sylvester equations, Numerical Linear Algebra with Applications, 27(5), e2320, (2020). [28] Z. Y. Liu, F. Zhang, Y. Zhou, C. Ferreira and Y.L. Zhang, Extrapolated and successive overrelaxation ADI methods for continuous Sylvester equations, submitted. [29] N. Levenberg and L. Reichel, A generalized ADI iterative method, Numer. Math., 66 (1993), pp.215-233. [30] C. Van Loan, Computational Frameworks for the Fast Fourier Transform, Frontiers in Applied Mathematics, SIAM, Philadelphia, PA, USA (1992). [31] M. K. Ng, Circulant and skew-circulant splitting methods for Toeplitz systems, Journal of Computational and Applied Mathematics 159 (2003), pp. 101-108 [32] M. K. Ng, Iterative methods for Toeplitz systems, Oxford Univ. Press, 2004. [33] G. Starke and W. Niethammer, SOR for AX −XB =C, Linear Algebra Appl., 154/156 (1991) 355–375. [34] Y. Saad, Iterative methods for sparse Linear systems, 2nd edition, SIAM, Philadelphia, PA, USA, 2003. [35] R. A. Smith, Matrix equation XA +BX =C, SIAM J. Appl. Math., 16 (1968), 198–201. [36] V. Simoncini, Computational Methods for Linear Matrix Equations, SIAM Rev., 8(3), (2016), pp. 377-441. [37] M. Vetterli and H. Nussbaumer, Simple FFT and DCT algorithms with reduced number of operations, Signal Process., 6 (1984), pp. 267-278. [38] E. L. Wachspress, Iterative solution of the Lyapunov matrix equation, Appl. Math. Lett., 107(1), (1988), pp. 87–90. [39] X. Wang , W.-W. Li and L.-Z. Mao, On positive-definite and skew-Hermitian splitting iterative methods for continuous Sylvester equation AX +XB =C, Comput. Math. Appl., 66 (2013), pp. 2352–2361. [40] D. M. Young, Jr., Iterative Solution of Large Linear Systems, Academic Press, 1971 (reprinted by Dover, 2003). [41] D. M. Young, Convergence Properties of the Symmetric and Unsymmetric Successive Overrelaxation Methods and Related Methods, Math. Comput., 24(112) (1970), pp. 793-807 [42] Q.-Q. Zheng, C.-F. Ma, On normal and skew-Hermitian splitting iterative methods for large sparse continuous Sylvester equations, J. Comput. Appl. Math., 268 (2014), pp. 145-154.
Circulant and skew-circulant splitting algorithms 17 Appendix A. Implementation details. Algorithm 1 CSCS – circulant and skew-circulant splitting iteration Input: Toeplitz matrices A, B,C(orders n×n,m×mand n×m), initial approximation X0, relative residual tolerance tol, maximum number of iterations maxit Output: Solution Xof the Sylester equation AX +XB =C [CA,SA] = CSsplitting(Acol1,Arow1).circulant and skew-circulant splittings of Aand B [CB,SB] = CSsplitting(Bcol1,Brow1) Dn=exp((0 : n−1)/n ∗pi ∗i). Dn= [1,e π ni,...,e (n−1)π ni] Dm=exp((0 : m−1)/m ∗pi ∗i) DcA =diagifftfft(CA).’.’. DcA =diag(ΛA); ΛA=FACAF∗ A DcB =diagifftfft(CB).’.’. DcB =diag(ΛB); ΛB=FBCBF∗ B DsA =diag(fft(ifft(Dn’.∗SA.∗Dn).’).’). DsA =diag(ΣA); ΣA=ˆ FASAˆ F∗ A DsB =diag(fft(ifft(Dm’.∗SB.∗Dm).’).’). DsB =diag(ΣB); ΣB=ˆ FBSBˆ F∗ B ..∗for element-wise product [α,β] = shifts(DcA, DcB, DsA, DsB).shift parameters αand β D1=DCA+α;D2=DCB+β;D3=DSA+α;D4=DSB+β A=sparse(A); B=sparse(B); C=sparse(C).Matlab sparse matrix storage format X=X0 R=resid(X, C, DcA, DcB, DsA, DsB, Dn, Dm). R =C−AX −XB using (3.12) normR =norm(R, ‘fro’); normC =norm(C, ‘fro’).Frobenious norms of Rand C iter = 0 .number of iterations counter while (normR/normC)> tol and iter < maxitdo % First step R= (ifft(fft(R).’).’)∗(sqrt(m/n)) .transform (3.13) Z=R./(D1 + D2.’).solve (αI + ΛA)Z+Z(βI + ΛB) = R X=X+ifft((fft(Z.’)).’).update X;X←X+F∗ AZFB % Second step R=resid(X, C, DcA, DcB, DsA, DsB, Dn, Dm).use (3.12) to compute R R=ifft((fft(((Dn’).∗R. ∗Dm).’)).’)∗(sqrt(n/m)) .transform (3.14) Z=R./(D3+D4.’).solve (αI + ΣA)Z+Z(βI + ΣB) = R X=X+ (Dn.’).∗(ifft(fft(Z).’).’).∗conj(Dm).update X;X←X+ˆ F∗ AZˆ FB R=resid(X, C, DcA, DcB, DsA, DsB, Dn, Dm) normR =norm(R, ‘fro’) iter =iter + 1 end while if iter >=maxit then disp(‘Maximum number of iterations exceed.’) end if
18 Z. Y. Liu, F. Zhang, C. Ferreira and Y.L. Zhang Algorithm 2 CSsplitting – circulant and skew-circulant splitting of a Toeplitz matrix Input: First column and first row, cand r, of a n×nToeplitz matrix A (cand rshould be given as rows, c(1) should be equal to r(1)) Output: CAand SAwith A=CA+SA, circulant and skew-circulant splitting of A % Circulant part CAc = (c+ [0,fliplr(r(2 : n))])/2 CAr = [r(1)/2,fliplr(CAc(2 : n))] CA=toeplitz(CAc, CAr) % Skew-circulant part SAc = (c−[0,fliplr(r(2 : n))])/2 SAr = [r(1)/2−fliplr(SAc(2 : n))] SA=toeplitz(SAc, SAr) Algorithm 3 resid – residual for a given approximation X Input: Approximation Xand matrix Cof AX +XB =C, DcA,DcB,DsA,DsB,Dnand Dm, computed in CSCS function Output: Residual R=C−AX −XB using (3.12) p1=ifft(D1.∗fft(X)) . p1=F∗ AΛAFAX p2= (Dn.’).∗(fft(D3.∗ifft((Dn’).∗X))) . p2=ˆ F∗ AΣAˆ FAX p3=fft(((ifft(X.’).’).∗(D2.’)).’).’. p3=XF ∗ BΛBFB p4= (fft((X.∗Dm).’)).’ p4= (ifft((p4.∗(D4.’)).’).’).∗(conj(Dm)) . p4=Xˆ F∗ BΣBˆ FB R=C−p1−p2−p3−p4 Algorithm 4 shifts – find γ?and shift parameters αand β Input: DcA, DcB, DsA,DsB eigenvalues of CA,CB,SA,SB, respectively Output: shifts αand β De C=DcA +DcB.’;De S=DsA +DsB.’.eigenvalues of e Cand e S D1= [real(De C); real(De S)]; D2=abs[imag(De C); imag(De S)].see Remark 4.1 θmin =minmin(D1);θmax =maxmax(D1) ηmin =minmin(D2);ηmax =maxmax(D2) if θmin ≥0then .see Theorem 4.3 if ηmax <pθmin ∗(θmax −θmin)/2then γ?=pθminθmax −η2 max else γ?=pθ2 min +η2 max end if else γ?= 1 .random value for γ?if θmin <0 disp(‘Warning: θmin <0. We let γ?= 1.’) end if α=γ?/2; β=α
Circulant and skew-circulant splitting algorithms 19 Algorithm 5 HSS – Hermitian and skew-Hermitian splitting iteration Input: Toeplitz matrices A, B,C(orders n×n,m×mand n×m), initial approximation X0, shift parameters αand β, relative residual tolerance tol, maximum number of iterations maxit Output: Solution Xof the Sylester equation AX +XB =C .Hermitian and skew-Hermitian splittings of Aand B H1= (A+A’)/2 S1= (A−A’)/2 H2= (B+B’)/2 S2= (B−B’)/2 .schur forms of H1,H2,S1and S2(diagonalizable) [Q1,D1] = schur(full(H1)) . H1=Q1D1Q∗ 1 [Q2,D2] = schur(full(H2)) . H2=Q2D2Q∗ 2 [Q3,D3] = schur(full(S1)) [Q3,D3] = rsf2csf(Q3,D3). S1=Q3D3Q∗ 3 [Q4,D4] = schur(full(S2)) [Q4,D4] = rsf2csf(Q4,D4). S2=Q4D4Q∗ 4 .diagonal elements of D1+αIn,D2+βIm,D3+αInand D4+βIm D1=diag(D1) + α;D2=diag(D2) + β D3=diag(D3) + α;D4=diag(D4) + β A=sparse(A); B=sparse(B); C=sparse(C).Matlab sparse matrix storage format X=X0 R=C−A∗X−X∗B normR =norm(R, ‘fro’); normC =norm(C, ‘fro’).Frobenious norms of Rand C iter = 0 .number of iterations counter while (normR/normC)> tol and iter < maxitdo % First step R=Q1’∗R∗Q2 Z=R./(D1 + D2.’).solve (αI +D1)Z+Z(βI +D2) = R X=X+Q1∗Z∗Q2’.update X;X←X+Q1ZQ∗ 2 % Second step R=C−A∗X−X∗B R=Q3’∗R∗Q4 Z=R./(D3+D4.’).solve (αI +D3)Z+Z(βI +D4) = R X=X+Q3∗Z∗Q4’.update X;X←X+Q3ZQ∗ 4 R=C−A∗X−X∗B normR =norm(R, ‘fro’) iter =iter + 1 end while if iter >=maxit then disp(‘Maximum number of iterations exceed.’) end if
20 Z. Y. Liu, F. Zhang, C. Ferreira and Y.L. Zhang Algorithm 6 BSSOR – Block Symmetric Successive Over-Relaxation iteration Input: matrices A, B,C(orders n×n,m×mand n×m), initial approximation X0, relaxation parameter ω, relative residual tolerance tol, maximum number of iterations maxit Output: Solution Xof the Sylester equation AX +XB =C % Two steps with the same parameter ω % (D1/ω +L1)Xk+1 2+Xk+1 2(D2/ω +U2) = C+(1 −w)/wD1−U1Xk+Xk(1 −w)/wD2−L2 % (D1/ω +U1)Xk+1 +Xk+1(D2/ω +L2) = C+(1 −w)/wD1−L1Xk+1 2+Xk+1 2(1 −w)/wD2−U2 % Using residuals, Rkand Rk+1 2, and new variables, Zk+1 and Zk+1 2 % (D1/ω +L1)Zk+1 2+Zk+1 2(D2/ω +U2) = Rk;Xk+1 2=Xk+Zk+1 2 % (D1/ω +U1)Zk+1 +Zk+1(D2/ω +L2) = Rk+1 2;Xk+1 =Xk+1 2+Zk+1 D1=diag(A); L1=tril(A, −1); U1=triu(A, 1) .diagonal, strictly lower and D2=diag(B); L2=tril(B, −1); U2=triu(B, 1) .strictly upper parts of Aand B D1=D1/ω;L1=diag(D1) + L1;U1=diag(D1) + U1 D2=D2/ω;L2=diag(D2) + L2;U2=diag(D2) + U2 A=sparse(A); B=sparse(B); C=sparse(C).Matlab sparse matrix storage format X=X0;R=C−A∗X−X∗B . initial residual normR =norm(R, ‘fro’); normC =norm(C, ‘fro’).Frobenious norms of Rand C Z=zeros(n,m).preallocation for speed index1=eye(n,‘logical’).logical indexing for the diagonal elements index2=eye(m,‘logical’).logical indexing for the diagonal elements iter = 0 .number of iterations counter while (normR/normC)> tol and iter < maxitdo % First step .solve L1Z+ZU2=R opts.LT =true;opts.UT =false;.LT - lower triangular option to linsolve L1(index1) = D1+D2(1) . L1=L1+D2(1)In Z(:,1) = linsolve(L1, R(:,1),opts).column 1of Z for k=2:mdo .columns 2through mof Z L1(index1) = D1+D2(k). L1=L1+D2(k)In Z(:, k) = linsolve(L1, R(:, k)−Z(:,1 : (k−1)) ∗U2(1 : (k−1), k),opts) end for X=X+Z;R=C−A∗X−X∗B . update Xand R % Second step .solve U1Z+ZL2=R opts.LT =false;opts.UT =true;.UT - upper triangular option to linsolve L2(index2) = D2+D1(n). L2=L2+D1(n)In Z(n, :) = linsolve(L2.’, R(n, :).’,opts).last row of Z for k=n−1 : −1 : 1 do .rows n−1through 1of Z L2(index2) = D2+D1(k). L2=L2+D1(k)In Z(k, :) = linsolve(L2.’,(R(k, :) −U1(k, k + 1 : n)∗Z(k+ 1 : n, :)).’,opts) end for X=X+Z;R=C−A∗X−X∗B . update Xand R normR =norm(R, ‘fro’) iter =iter + 1 end while if iter >=maxit then disp(‘Maximum number of iterations exceed.’) end if
Circulant and skew-circulant splitting algorithms 21 Algorithm 7 mylyap – Bartels-Stewart method Input: matrices A, B,C(orders n×n,m×mand n×m) Output: Solution Xof the Sylester equation AX +XB =C [Q1,T1] = schur(full(A’)) [Q1,T1] = rsf2csf(Q1,T1) T1=T1’.lower complex schur form of A;A=Q1T1Q∗ 1 [Q2,T2] = schur(full(B)) [Q2,T2] = rsf2csf(Q2,T2).upper complex schur form of B;B=Q2T1Q∗ 2 dT1=diag(T1).diagonal elements of T1and T2 dT2=diag(T2) index =eye(n,‘logical’) % Solution of T1X+XT2=Q∗ 1CQ2 C=Q1’∗C∗Q2 X=zeros(n,m).preallocation for spead opts.LT =true .LT - lower triangular option to linsolve T1(index) = diag(T1) + dT2(1) . T1=T1+dT2(1)In X(:,1) = linsolve(T1, C(:,1),opts).column 1of X for k=2:mdo .columns 2 through m of X T1(index) = dT1+dT2(k). T1=T1+dT2(k)In X(:, k) = linsolve(T1, C(:, k)−X(:,1:(k−1)) ∗T2(1 : (k−1), k,opts) end for % Solution of AX +XB =C X=Q1∗X∗Q2’