A Fast QR Algorithm for Companion Matrices
Total Page:16
File Type:pdf, Size:1020Kb
Load more
Recommended publications
-
MATH 210A, FALL 2017 Question 1. Let a and B Be Two N × N Matrices
MATH 210A, FALL 2017 HW 6 SOLUTIONS WRITTEN BY DAN DORE (If you find any errors, please email [email protected]) Question 1. Let A and B be two n × n matrices with entries in a field K. −1 Let L be a field extension of K, and suppose there exists C 2 GLn(L) such that B = CAC . −1 Prove there exists D 2 GLn(K) such that B = DAD . (that is, turn the argument sketched in class into an actual proof) Solution. We’ll start off by proving the existence and uniqueness of rational canonical forms in a precise way. d d−1 To do this, recall that the companion matrix for a monic polynomial p(t) = t + ad−1t + ··· + a0 2 K[t] is defined to be the (d − 1) × (d − 1) matrix 0 1 0 0 ··· 0 −a0 B C B1 0 ··· 0 −a1 C B C B0 1 ··· 0 −a2 C M(p) := B C B: : : C B: :: : C @ A 0 0 ··· 1 −ad−1 This is the matrix representing the action of t in the cyclic K[t]-module K[t]=(p(t)) with respect to the ordered basis 1; t; : : : ; td−1. Proposition 1 (Rational Canonical Form). For any matrix M over a field K, there is some matrix B 2 GLn(K) such that −1 BMB ' Mcan := M(p1) ⊕ M(p2) ⊕ · · · ⊕ M(pm) Here, p1; : : : ; pn are monic polynomials in K[t] with p1 j p2 j · · · j pm. The monic polynomials pi are 1 −1 uniquely determined by M, so if for some C 2 GLn(K) we have CMC = M(q1) ⊕ · · · ⊕ M(qk) for q1 j q1 j · · · j qm 2 K[t], then m = k and qi = pi for each i. -
The Multishift Qr Algorithm. Part I: Maintaining Well-Focused Shifts and Level 3 Performance∗
SIAM J. MATRIX ANAL. APPL. c 2002 Society for Industrial and Applied Mathematics Vol. 23, No. 4, pp. 929–947 THE MULTISHIFT QR ALGORITHM. PART I: MAINTAINING WELL-FOCUSED SHIFTS AND LEVEL 3 PERFORMANCE∗ KAREN BRAMAN† , RALPH BYERS† , AND ROY MATHIAS‡ Abstract. This paper presents a small-bulge multishift variation of the multishift QR algorithm that avoids the phenomenon ofshiftblurring, which retards convergence and limits the number of simultaneous shifts. It replaces the large diagonal bulge in the multishift QR sweep with a chain of many small bulges. The small-bulge multishift QR sweep admits nearly any number ofsimultaneous shifts—even hundreds—without adverse effects on the convergence rate. With enough simultaneous shifts, the small-bulge multishift QR algorithm takes advantage ofthe level 3 BLAS, which is a special advantage for computers with advanced architectures. Key words. QR algorithm, implicit shifts, level 3 BLAS, eigenvalues, eigenvectors AMS subject classifications. 65F15, 15A18 PII. S0895479801384573 1. Introduction. This paper presents a small-bulge multishift variation of the multishift QR algorithm [4] that avoids the phenomenon of shift blurring, which re- tards convergence and limits the number of simultaneous shifts that can be used effec- tively. The small-bulge multishift QR algorithm replaces the large diagonal bulge in the multishift QR sweep with a chain of many small bulges. The small-bulge multishift QR sweep admits nearly any number of simultaneous shifts—even hundreds—without adverse effects on the convergence rate. It takes advantage of the level 3 BLAS by organizing nearly all the arithmetic workinto matrix-matrix multiplies. This is par- ticularly efficient on most modern computers and especially efficient on computers with advanced architectures. -
The SVD Algorithm
Jim Lambers CME 335 Spring Quarter 2010-11 Lecture 6 Notes The SVD Algorithm Let A be an m × n matrix. The Singular Value Decomposition (SVD) of A, A = UΣV T ; where U is m × m and orthogonal, V is n × n and orthogonal, and Σ is an m × n diagonal matrix with nonnegative diagonal entries σ1 ≥ σ2 ≥ · · · ≥ σp; p = minfm; ng; known as the singular values of A, is an extremely useful decomposition that yields much informa- tion about A, including its range, null space, rank, and 2-norm condition number. We now discuss a practical algorithm for computing the SVD of A, due to Golub and Kahan. Let U and V have column partitions U = u1 ··· um ;V = v1 ··· vn : From the relations T Avj = σjuj;A uj = σjvj; j = 1; : : : ; p; it follows that T 2 A Avj = σj vj: That is, the squares of the singular values are the eigenvalues of AT A, which is a symmetric matrix. It follows that one approach to computing the SVD of A is to apply the symmetric QR algorithm T T T T to A A to obtain a decomposition A A = V Σ ΣV . Then, the relations Avj = σjuj, j = 1; : : : ; p, can be used in conjunction with the QR factorization with column pivoting to obtain U. However, this approach is not the most practical, because of the expense and loss of information incurred from computing AT A. Instead, we can implicitly apply the symmetric QR algorithm to AT A. As the first step of the symmetric QR algorithm is to use Householder reflections to reduce the matrix to tridiagonal form, we can use Householder reflections to instead reduce A to upper bidiagonal form 2 3 d1 f1 6 d2 f2 7 6 7 T 6 . -
Toeplitz Nonnegative Realization of Spectra Via Companion Matrices Received July 25, 2019; Accepted November 26, 2019
Spec. Matrices 2019; 7:230–245 Research Article Open Access Special Issue Dedicated to Charles R. Johnson Macarena Collao, Mario Salas, and Ricardo L. Soto* Toeplitz nonnegative realization of spectra via companion matrices https://doi.org/10.1515/spma-2019-0017 Received July 25, 2019; accepted November 26, 2019 Abstract: The nonnegative inverse eigenvalue problem (NIEP) is the problem of nding conditions for the exis- tence of an n × n entrywise nonnegative matrix A with prescribed spectrum Λ = fλ1, . , λng. If the problem has a solution, we say that Λ is realizable and that A is a realizing matrix. In this paper we consider the NIEP for a Toeplitz realizing matrix A, and as far as we know, this is the rst work which addresses the Toeplitz nonnegative realization of spectra. We show that nonnegative companion matrices are similar to nonnegative Toeplitz ones. We note that, as a consequence, a realizable list Λ = fλ1, . , λng of complex numbers in the left-half plane, that is, with Re λi ≤ 0, i = 2, . , n, is in particular realizable by a Toeplitz matrix. Moreover, we show how to construct symmetric nonnegative block Toeplitz matrices with prescribed spectrum and we explore the universal realizability of lists, which are realizable by this kind of matrices. We also propose a Matlab Toeplitz routine to compute a Toeplitz solution matrix. Keywords: Toeplitz nonnegative inverse eigenvalue problem, Unit Hessenberg Toeplitz matrix, Symmetric nonnegative block Toeplitz matrix, Universal realizability MSC: 15A29, 15A18 Dedicated with admiration and special thanks to Charles R. Johnson. 1 Introduction The nonnegative inverse eigenvalue problem (hereafter NIEP) is the problem of nding necessary and sucient conditions for a list Λ = fλ1, λ2, . -
Communication-Optimal Parallel and Sequential QR and LU Factorizations
Communication-optimal parallel and sequential QR and LU factorizations James Demmel Laura Grigori Mark Frederick Hoemmen Julien Langou Electrical Engineering and Computer Sciences University of California at Berkeley Technical Report No. UCB/EECS-2008-89 http://www.eecs.berkeley.edu/Pubs/TechRpts/2008/EECS-2008-89.html August 4, 2008 Copyright © 2008, by the author(s). All rights reserved. Permission to make digital or hard copies of all or part of this work for personal or classroom use is granted without fee provided that copies are not made or distributed for profit or commercial advantage and that copies bear this notice and the full citation on the first page. To copy otherwise, to republish, to post on servers or to redistribute to lists, requires prior specific permission. Communication-optimal parallel and sequential QR and LU factorizations James Demmel, Laura Grigori, Mark Hoemmen, and Julien Langou August 4, 2008 Abstract We present parallel and sequential dense QR factorization algorithms that are both optimal (up to polylogarithmic factors) in the amount of communication they perform, and just as stable as Householder QR. Our first algorithm, Tall Skinny QR (TSQR), factors m × n matrices in a one-dimensional (1-D) block cyclic row layout, and is optimized for m n. Our second algorithm, CAQR (Communication-Avoiding QR), factors general rectangular matrices distributed in a two-dimensional block cyclic layout. It invokes TSQR for each block column factorization. The new algorithms are superior in both theory and practice. We have extended known lower bounds on communication for sequential and parallel matrix multiplication to provide latency lower bounds, and show these bounds apply to the LU and QR decompositions. -
Massively Parallel Poisson and QR Factorization Solvers
Computers Math. Applic. Vol. 31, No. 4/5, pp. 19-26, 1996 Pergamon Copyright~)1996 Elsevier Science Ltd Printed in Great Britain. All rights reserved 0898-1221/96 $15.00 + 0.00 0898-122 ! (95)00212-X Massively Parallel Poisson and QR Factorization Solvers M. LUCK£ Institute for Control Theory and Robotics, Slovak Academy of Sciences DdbravskA cesta 9, 842 37 Bratislava, Slovak Republik utrrluck@savba, sk M. VAJTERSIC Institute of Informatics, Slovak Academy of Sciences DdbravskA cesta 9, 840 00 Bratislava, P.O. Box 56, Slovak Republic kaifmava©savba, sk E. VIKTORINOVA Institute for Control Theoryand Robotics, Slovak Academy of Sciences DdbravskA cesta 9, 842 37 Bratislava, Slovak Republik utrrevka@savba, sk Abstract--The paper brings a massively parallel Poisson solver for rectangle domain and parallel algorithms for computation of QR factorization of a dense matrix A by means of Householder re- flections and Givens rotations. The computer model under consideration is a SIMD mesh-connected toroidal n x n processor array. The Dirichlet problem is replaced by its finite-difference analog on an M x N (M + 1, N are powers of two) grid. The algorithm is composed of parallel fast sine transform and cyclic odd-even reduction blocks and runs in a fully parallel fashion. Its computational complexity is O(MN log L/n2), where L = max(M + 1, N). A parallel proposal of QI~ factorization by the Householder method zeros all subdiagonal elements in each column and updates all elements of the given submatrix in parallel. For the second method with Givens rotations, the parallel scheme of the Sameh and Kuck was chosen where the disjoint rotations can be computed simultaneously. -
The Polar Decomposition of Block Companion Matrices
The polar decomposition of block companion matrices Gregory Kalogeropoulos1 and Panayiotis Psarrakos2 September 28, 2005 Abstract m m¡1 Let L(¸) = In¸ + Am¡1¸ + ¢ ¢ ¢ + A1¸ + A0 be an n £ n monic matrix polynomial, and let CL be the corresponding block companion matrix. In this note, we extend a known result on scalar polynomials to obtain a formula for the polar decomposition of CL when the matrices A0 Pm¡1 ¤ and j=1 Aj Aj are nonsingular. Keywords: block companion matrix, matrix polynomial, eigenvalue, singular value, polar decomposition. AMS Subject Classifications: 15A18, 15A23, 65F30. 1 Introduction and notation Consider the monic matrix polynomial m m¡1 L(¸) = In¸ + Am¡1¸ + ¢ ¢ ¢ + A1¸ + A0; (1) n£n where Aj 2 C (j = 0; 1; : : : ; m ¡ 1; m ¸ 2), ¸ is a complex variable and In denotes the n £ n identity matrix. The study of matrix polynomials, especially with regard to their spectral analysis, has a long history and plays an important role in systems theory [1, 2, 3, 4]. A scalar ¸0 2 C is said to be an eigenvalue of n L(¸) if the system L(¸0)x = 0 has a nonzero solution x0 2 C . This solution x0 is known as an eigenvector of L(¸) corresponding to ¸0. The set of all eigenvalues of L(¸) is the spectrum of L(¸), namely, sp(L) = f¸ 2 C : detL(¸) = 0g; and contains no more than nm distinct (finite) elements. 1Department of Mathematics, University of Athens, Panepistimioupolis 15784, Athens, Greece (E-mail: [email protected]). 2Department of Mathematics, National Technical University, Zografou Campus 15780, Athens, Greece (E-mail: [email protected]). -
QR Decomposition on Gpus
QR Decomposition on GPUs Andrew Kerr, Dan Campbell, Mark Richards Georgia Institute of Technology, Georgia Tech Research Institute {andrew.kerr, dan.campbell}@gtri.gatech.edu, [email protected] ABSTRACT LU, and QR decomposition, however, typically require ¯ne- QR decomposition is a computationally intensive linear al- grain synchronization between processors and contain short gebra operation that factors a matrix A into the product of serial routines as well as massively parallel operations. Achiev- a unitary matrix Q and upper triangular matrix R. Adap- ing good utilization on a GPU requires a careful implementa- tive systems commonly employ QR decomposition to solve tion informed by detailed understanding of the performance overdetermined least squares problems. Performance of QR characteristics of the underlying architecture. decomposition is typically the crucial factor limiting problem sizes. In this paper, we focus on QR decomposition in particular and discuss the suitability of several algorithms for imple- Graphics Processing Units (GPUs) are high-performance pro- mentation on GPUs. Then, we provide a detailed discussion cessors capable of executing hundreds of floating point oper- and analysis of how blocked Householder reflections may be ations in parallel. As commodity accelerators for 3D graph- used to implement QR on CUDA-compatible GPUs sup- ics, GPUs o®er tremendous computational performance at ported by performance measurements. Our real-valued QR relatively low costs. While GPUs are favorable to applica- implementation achieves more than 10x speedup over the tions with much inherent parallelism requiring coarse-grain native QR algorithm in MATLAB and over 4x speedup be- synchronization between processors, methods for e±ciently yond the Intel Math Kernel Library executing on a multi- utilizing GPUs for algorithms computing QR decomposition core CPU, all in single-precision floating-point. -
NON-SPARSE COMPANION MATRICES∗ 1. Introduction. The
Electronic Journal of Linear Algebra, ISSN 1081-3810 A publication of the International Linear Algebra Society Volume 35, pp. 223-247, June 2019. NON-SPARSE COMPANION MATRICES∗ LOUIS DEAETTy , JONATHAN FISCHERz , COLIN GARNETTx , AND KEVIN N. VANDER MEULEN{ Abstract. Given a polynomial p(z), a companion matrix can be thought of as a simple template for placing the coefficients of p(z) in a matrix such that the characteristic polynomial is p(z). The Frobenius companion and the more recently-discovered Fiedler companion matrices are examples. Both the Frobenius and Fiedler companion matrices have the maximum possible number of zero entries, and in that sense are sparse. In this paper, companion matrices are explored that are not sparse. Some constructions of non-sparse companion matrices are provided, and properties that all companion matrices must exhibit are given. For example, it is shown that every companion matrix realization is non-derogatory. Bounds on the minimum number of zeros that must appear in a companion matrix, are also given. Key words. Companion matrix, Fiedler companion matrix, Non-derogatory matrix, Characteristic polynomial. AMS subject classifications. 15A18, 15B99, 11C20, 05C50. 1. Introduction. The Frobenius companion matrix to the polynomial n n−1 n−2 (1.1) p(z) = z + a1z + a2z + ··· + an−1z + an is the matrix 2 0 1 0 ··· 0 3 6 0 0 1 ··· 0 7 6 7 6 . 7 (1.2) F = 6 . .. 7 : 6 . 7 6 7 4 0 0 0 ··· 1 5 −an −an−1 · · · −a2 −a1 2 In general, a companion matrix to p(z) is an n×n matrix C = C(p) over R[a1; a2; : : : ; an] with n −n entries in R and the remaining entries variables −a1; −a2;:::; −an such that the characteristic polynomial of C is p(z). -
Permanental Compounds and Permanents of (O,L)-Circulants*
CORE Metadata, citation and similar papers at core.ac.uk Provided by Elsevier - Publisher Connector Permanental Compounds and Permanents of (O,l)-Circulants* Henryk Mint Department of Mathematics University of California Santa Barbara, Califmia 93106 Submitted by Richard A. Brualdi ABSTRACT It was shown by the author in a recent paper that a recurrence relation for permanents of (0, l)-circulants can be generated from the product of the characteristic polynomials of permanental compounds of the companion matrix of a polynomial associated with (O,l)-circulants of the given type. In the present paper general properties of permanental compounds of companion matrices are studied, and in particular of convertible companion matrices, i.e., matrices whose permanental com- pounds are equal to the determinantal compounds after changing the signs of some of their entries. These results are used to obtain formulas for the limit of the nth root of the permanent of the n X n (0, l)-circulant of a given type, as n tends to infinity. The root-squaring method is then used to evaluate this limit for a wide range of circulant types whose associated polynomials have convertible companion matrices. 1. INTRODUCTION tit Q,,, denote the set of increasing sequences of integers w = (+w2,..., w,), 1 < w1 < w2 < * 9 * < w, < t. If A = (ajj) is an s X t matrix, and (YE Qh,s, p E QkSt, then A[Lx~/~] denotes the h X k submatrix of A whose (i, j) entry is aa,Bj, i = 1,2 ,..., h, j = 1,2,.. ., k, and A(aIP) desig- nates the (s - h) X (t - k) submatrix obtained from A by deleting rows indexed (Y and columns indexed /I. -
QR Factorization for the CELL Processor 1 Introduction
QR Factorization for the CELL Processor { LAPACK Working Note 201 Jakub Kurzak Department of Electrical Engineering and Computer Science, University of Tennessee Jack Dongarra Department of Electrical Engineering and Computer Science, University of Tennessee Computer Science and Mathematics Division, Oak Ridge National Laboratory School of Mathematics & School of Computer Science, University of Manchester ABSTRACT ScaLAPACK [4] are good examples. These imple- The QR factorization is one of the most mentations work on square or rectangular submatri- important operations in dense linear alge- ces in their inner loops, where operations are encap- bra, offering a numerically stable method for sulated in calls to Basic Linear Algebra Subroutines solving linear systems of equations includ- (BLAS) [5], with emphasis on expressing the compu- ing overdetermined and underdetermined sys- tation as level 3 BLAS (matrix-matrix type) opera- tems. Classic implementation of the QR fac- tions. torization suffers from performance limita- The fork-and-join parallelization model of these li- tions due to the use of matrix-vector type op- braries has been identified as the main obstacle for erations in the phase of panel factorization. achieving scalable performance on new processor ar- These limitations can be remedied by using chitectures. The arrival of multi-core chips increased the idea of updating of QR factorization, ren- the demand for new algorithms, exposing much more dering an algorithm, which is much more scal- thread-level parallelism of much finer granularity. able and much more suitable for implementa- This paper presents an implementation of the QR tion on a multi-core processor. It is demon- factorization based on the idea of updating the QR strated how the potential of the CELL proces- factorization. -
A Fast and Stable Parallel QR Algorithm for Symmetric Tridiagonal Matrices
CORE Metadata, citation and similar papers at core.ac.uk Provided by Elsevier - Publisher Connector A Fast and Stable Parallel QR Algorithm for Symmetric Tridiagonal Matrices Ilan Bar-On Department of Computer Science Technion Haifa 32000, Israel and Bruno Codenotti* IEZ-CNR Via S. Maria 46 561 OO- Piss, ltaly Submitted by Daniel Hershkowitz ABSTRACT We present a new, fast, and practical parallel algorithm for computing a few eigenvalues of a symmetric tridiagonal matrix by the explicit QR method. We present a new divide and conquer parallel algorithm which is fast and numerically stable. The algorithm is work efficient and of low communication overhead, and it can be used to solve very large problems infeasible by sequential methods. 1. INTRODUCTION Very large band linear systems arise frequently in computational science, directly from finite difference and finite element schemes, and indirectly from applying the symmetric block Lanczos algorithm to sparse systems, or the symmetric block Householder transformation to dense systems. In this paper we present a new divide and conquer parallel algorithm for computing *Partially supported by ESPRIT B.R.A. III of the EC under contract n. 9072 (project CEPPCOM). LINEAR ALGEBRA AND ITS APPLICATlONS 220:63-95 (1995) 0 Elsevier Science Inc., 199s 0024-3795/95/$9.50 6.55 Avenw of the Americas. New York. NY 10010 SSDI 0024-3795(93)00360-C 64 ILAN BAR-ON AND BRUNO CODENO’ITI a few eigenvalues of a symmetric tridiagonal matrix by the explicit QR method. Our algorithm is fast and numerically stable. Moreover, the algo- rithm is work efficient, with low communication overhead, and it can be used in practice to solve very large problems on massively parallel systems, problems infeasible on sequential machines.