Docsity

Matrix Computations esc, Trabalhos de Complexidade computacional avançada

Pré-visualização parcial do texto

Baixe Matrix Computations esc e outras Trabalhos em PDF para Complexidade computacional avançada, somente na Docsity!

Johns Hopkins Studies in the Mathematical Sciences

in association with the Department of Mathematical Sciences,

The Johns Hopkins University

© 1983, 1989, 1996, 2013 The Johns Hopkins University Press

All rights reserved. Published 2013

Printed in the United States of America on acid-free paper

First edition 1983

Second edition 1989

Third edition 1996

Fourth edition 2013

The Johns Hopkins University Press

2715 North Charles Street

Baltimore, Maryland 21218-

www.press.jhu.edu

Library of Congress Control Number: 2012943449

ISBN 13: 978-1-4214-0794-4 (he)

ISBN 10: 1-4214-0794-9 (he)

ISBN 13: 978-1-4214-0859-0 (eb)

ISBN 10: 1-4214-0859-7 (eb)

A catalog record for this book is available from the British Library.

MATLAB® is a registered trademark of The Mathworks Inc.

Special discounts are available for bulk purchases of this book. For more information, please contact Special Sales at 4 1 0-51 6-6936 or [email protected]. edu.

The Johns Hopkins University Press uses environmentally friendly book materials, including

recycled text paper that is composed of at least 30 percent post-consumer waste, whenever

possible.

To

ALSTON S. HOUSEHOLDER

AND

JAMES H. WILKINSON

Contents

Preface xi

Global References xiii

Other Books xv

Useful URLs xix

Common Notation xxi

1 Matrix Multiplication

1.1 Basic Algorithms and Notation

1.2 Structure and Efficiency 14

1.3 Block Matrices and Algorithms

1.4 Fast Matrix-Vector Products

1.5 Vectorization and Locality 43

1.6 Parallel Matrix Multiplication

2 Matrix Analysis

2. 1 Basic Ideas from Linear Algebra 64

2.2 Vector Norms 68

2.3 Matrix Norms 71

2.4 The Singular Value Decomposition

2.5 Subspace Metrics 81

2.6 The Sensitivity of Square Systems

2.7 Finite Precision Matrix Computations

3 ---- General Linear Systems

3.l Triangular Systems 106

3.2 The LU Factorization 1 1 1

3.3 Roundoff Error in Gaussian Elimination 122

3.4 Pivoting 125

3.5 Improving and Estimating Accuracy 137

3.6 Parallel LU 144

4 Special Linear Systems

------------------ ------------- ----^153

Diagonal Dominance and Symmetry

Positive Definite Systems 159

VII

viii

Banded Systems 176

Symmetric Indefinite Systems 186

Block Tridiagonal Systems 196

Vandermonde Systems 203

Classical Methods for Toeplitz Systems

Circulant and Discrete Poisson Systems

Orthogonalization and Least Squares

Householder and Givens Transformations 234

The QR Factorization 246

The Full-Rank Least Squares Problem 260

Other Orthogonal Factorizations 274

The Rank-Deficient Least Squares Problem 288

Square and Underdetermined Systems 298

Modified Least Squares P roblems and Methods

6.1 Weighting and Regularization 304

6.2 Constrained Least Squares 313

6.3 Total Least Squares 320

6.4 Subspace Computations with the SVD 327

6.5 Updating Matrix Factorizations 334

U nsymmetric Eigenvalue Problems

Properties and Decompositions 348

Perturbation Theory 357

Power Iterations 365

The Hessenberg and Real Schur Forms 376

The Practical QR Algorithm 385

Invariant Subspace Computations 394

The Generalized Eigenvalue Problem 405

Hamiltonian and Product Eigenvalue Problems 420

Pseudospectra 426

Symmetric Eigenvalue Problems

Properties and Decompositions 440

Power Iterations 450

The Symmetric QR Algorithm 458

More Methods for Tridiagonal Problems 467

Jacobi Methods 476

Computing the SVD 486

Generalized Eigenvalue Problems with Symmetry 497

CONTENTS

Preface

My thirty-year book collaboration with Gene Golub began in 1 977 at a matrix

computation workshop held at Johns Hopkins University. His interest in my

work at the start of my academic career prompted the writing of G VL1. Sadly,

Gene died on November 16, 2007. At the time we had only just begun to

talk about G VL4. While writing these pages, I was reminded every day of his

far-reaching impact and professional generosity. This edition is a way to thank

Gene for our collaboration and the friendly research community that his unique

personality helped create.

It has been sixteen years since the publication of the third edition-a power-of-two

reminder that what we need to know about matrix computations is growing exponen

tially! Naturally, it is impossible to provide in-depth coverage of all the great new

advances and research trends. However, with the relatively recent publication of so

many excellent textbooks and specialized volumes, we are able to complement our

brief treatments with useful pointers to the literature. That said, here are the new

features of GVL4:

Content

The book is about twenty-five percent longer. There are new sections on fast

transforms (§1.4), parallel LU (§3.6), fast methods for circulant systems and discrete

Poisson systems (§4.8), Hamiltonian and product eigenvalue problems (§7.8) , pseu

dospectra (§7.9) , the matrix sign, square root, and logarithm functions (§9.4) , Lanczos

and quadrature (§10.2), large-scale SVD (§10.4) , Jacobi-Davidson (§10.6) , sparse direct

methods ( § 1 1. 1 ) , multigrid ( § 1 1 .6) , low displacement rank systems (§12. 1), structured

rank systems (§12.2), Kronecker product problems (§12.3), tensor contractions (§12.4) ,

and tensor decompositions (§12.5).

New topics at the subsection level include recursive block LU (§3.2.11), rook pivot

ing (§3.4.7) , tournament pivoting (§3.6.3), diagonal dominance (§4. 1. 1) , recursive block

structures (§4.2. 10), band matrix inverse properties (§4.3.8) , divide-and-conquer strate

gies for block tridiagonal systems (§4.5.4) , the cross product and various point/plane

least squares problems (§5.3.9) , the polynomial eigenvalue problem (§7.7.9) , and the

structured quadratic eigenvalue problem (§8.7.9).

Substantial upgrades include our treatment of floating-point arithmetic (§2.7) ,

LU roundoff error analysis (§3.3. 1 ) , LS sensitivity analysis (§5.3.6) , the generalized

singular value decomposition (§6. 1.6 and §8.7.4) , and the CS decomposition (§8.7.6).

References

The annotated bibliographies at the end of each section remain. Because of

space limitations, the master bibliography that was included in previous editions is

now available through the book website. References that are historically important

have been retained because old ideas have a way of resurrecting themselves. Plus, we

must never forget the 1950's and 1960's! As mentioned above, we have the luxury of

xi

Global References

A number of books provide broad coverage of the field and are cited multiple times.

We identify these global references using mnemonics. Bibliographic details are given

in the Other Books section that follows.

AEP
ANLA
ASNA
EOM
FFT
FOM
FMC
IMC
IMK
IMSL
ISM
IMSLE
LCG
MA
MABD
MAE
MEP
MPT
NLA
NMA
NMLE
NMLS
NMSE
SAP
SEP
SLAS
SLS
TMA

W ilkinson: Algebraic Eigenvalue Problem Demmel: Applied Numerical Linear Algebra Higham: Accuracy and Stability of Numerical Algorithms, second edition Chatelin: Eigenvalues of Matrices Van Loan: Computational Frameworks for the Fast Fourier Transform Higham: Functions of Matrices Watkins: Fundamentals of Matrix Computations Stewart: Introduction to Matrix Computations van der Vorst: Iterative Krylov Methods for Large Linear Systems Greenbaum: Iterative Methods for Solving Linear Systems Axelsson: Iterative Solution Methods Saad: Iterative Methods for Sparse Linear Systems, second edition Meurant: The Lanczos and Conjugate Gradient Algorithms... Horn and Johnson: Matrix Analysis Stewart: (^) Matrix Algorithms: Basic Decompositions Stewart: Matrix Algorithms Volume II: Eigensystems Watkins: The Matrix Eigenvalue Problem: GR and Krylo11 Subspace Methods Stewart and Sun: Matrix Perturbation Theory Trefethen and Bau: Numerical Linear Algebra Ipsen: (^) Numerical Matrix Analysis: Linear Systems and Least Squares Saad: Numerical Methods for Large Eigenvalue Problems, revised edition Bjorck: Numerical Methods for Least Squares Problems Kressner: Numerical Methods for General and Structured Eigenvalue Problems Trefethen and Embree: Spectra and Pseudospectra Parlett: The Symmetric Eigenvalue Problem Forsythe and Moler: Computer Solution of Linear Algebraic Systems Lawson and Hanson: Solving Least Squares Problems Horn and Johnson: Topics in Matrix Analysis

LAPACK LAPACK Users' Guide, third edition E. Anderson, Z. Bai, C. Bischof, S. Blackford, J. Demmel, J. Dongarra, J. Du Croz, A. Greenbaum, S. Hammarling, A. McKenney, and D. Sorensen. scaLAPACK ScaLAPACK Users' Guide L.S. Blackford, J. Choi, A. Cleary, E. D'Azevedo, J. Demmel, I. Dhillon, J. Dongarra, S. Hammarling, G. Henry, A. Petitet, K. Stanley, D. Walker, and R. C. Whaley. LIN_TEMPLATES Templates for the Solution of Linear Systems ... R. Barrett, M.W. Berry, T.F. Chan, J. Demmel, .J. Donato, J. Dongarra, V. Eijkhout, R. Pozo, C. Romine, and H. van der Vorst. EIG_TEMPLATES Templates for the Solution of Algebraic Eigenvalue Problems ... Z. Bai, J. Demmel, J. Dongarra, A. Ruhe, and H. van der Vorst.

XIII

xvi OTHER BOOKS

I.S. Duff, A.M. Erisman, and J.K. Reid (1986). Direct Methods for Sparse Matrices, Oxford University Press, New York. R.W. Farebrother (1987). Linear Least Squares Computations, Marcel Dekker, New York. C.L. Lawson and R.J. Hanson (1995). Solving Least Squares Problems, SIAM Publications, Philadelphia, PA. A. Bjorck (1996). Numerical Methods for Least Squares Problems, SIAM Publications, Philadel phia, PA. G.W. Stewart (1998). Matrix Algorithms: Basic Decompositions, SIAM Publications, Philadel phia, PA. N.J. Higham (2002). Accuracy and Stability of Numerical Algorithms, second edition, SIAM Publications, Philadelphia, PA. T.A. Davis (2006). Direct Method.� for Sparse Linear Systems, SIAM Publications, Philadel phia, PA. l.C.F. Ipsen (2009). Numerical Matrix Analysis: Linear Systems and Least Squares, SIAM Publications, Philadelphia, PA.

Eigenvalue Problems

A.R. Gourlay and G.A. Watson (1973). Computational Methods for Matrix Eigenproblems, John Wiley & Sons, New York. F. Chatelin (1993). Eigenvalues of Matrices, John Wiley & Sons, New York. B.N. Parlett (1998). The Symmetric Eigenvalue Problem, SIAM Publications, Philadelphia, PA. G.W. Stewart (2001). Matrix Algorithms Volume II: Eigensystems, SIAM Publications, Phila delphia, PA. L. Komzsik (2003). The Lanczos Method: Euolution and Application, SIAM Publications, Philadelphia, PA. D. Kressner (2005). Numerical Methods for General and Stmctured Eigenualue Problems, Springer, Berlin. D.S. Watkins (2007). The Matrix Eigenvalue Problem: GR and Krylou Subspace Methods, SIAM Publications, Philadelphia, PA. Y. Saad (2011). Numerical Methods for Large Eigenvalue Problems, revised edition, SIAM Publications, Philadelphia, PA.

Iterative Methods

R.S. Varga {1962). Matrix Iterative Analysis, Prentice-Hall, Englewood Cliffs, NJ. D.M. Young {1971). Iteratiue Solution of Large Linear Systems, Academic Press, New York. L.A. Hageman and D.M. Young (1981). Applied Iterative Methods, Academic Press, New York. J. Cullum and R.A. Willoughby (1985). Lanczos Algorithms for Large Symmetric Eigenvalue Computations, Vol. I Theory, Birkhaiiser, Boston. J. Cullum and R.A. Willoughby (1985). Lanczos Algorithms for Large Symmetric Eigenvalue Computation.�, Vol. II Programs, Birkhaiiser, Boston. W. Hackbusch (1994). Iteratiue Solution of Large Sparse Systems of Equations, Springer Verlag, New York.

  1. Axelsson (1994). Iterative Solution Methods, Cambridge University Press. A. Greenbaum (1997). Iterative Methods for Solving Linear Systems, SIAM Publications, Philadelphia, PA. Y. Saad {2003). Iterative Methods for Sparse Linear Systems, second edition, SIAM Publica tions, Philadelphia, PA. H. van der Vorst (2003). Iteratiue Krylov Methods for Large Linear Systems, Cambridge University Press, Cambridge, UK.

OTHER BOOKS xvii

G. Meurant (2006). The Lanczos and Conjugate Gradient Algorithms: From Theory to Finite Precision Computations, SIAM Publications, Philadelphia, PA.

Special Topics/Threads

L.N. Trefethen and M. Embree (2005). Spectra and Pseudospectra-The Behavior of Nonnor mal Matrices and Operators, Princeton University Press, Princeton and Oxford. R. Vandebril, M. Van Barel, and N. Mastronardi (2007). Matrix Computations and Semisep arable Matrices I: Linear Systems, Johns Hopkins University Press, Baltimore, MD. R. Vandebril, M. Van Barel, and N. Mastronardi (2008). Matrix Computations and Semisepa rable Matrices II: Eigenvalue and Singular Value Methods, Johns Hopkins University Press, Baltimore, MD. N.J. Higham (2008) Functions of Matrices, SIAM Publications, Philadelphia, PA.

Collected Works

R.H. Chan, C. Greif, and D.P. O'Leary, eds. (2007). Milestones in Matrix Computation: Selected Works of G.H. Golub, with Commentaries, Oxford University Press, Oxford. M.E. Kilmer and D.P. O'Leary, eds. (2010). Selected Works of G. W. Stewart, Birkhauser, Boston, MA.

Implementation

B.T. Smith, J.M. Boyle, Y. Ikebe, V.C. Klema, and C.B. Moler (1970). Matrix Eigensystem Routines: EISPACK Guide, second edition, Lecture Notes in Computer Science, Vol. 6, Springer-Verlag, New York. J.H. Wilkinson and C. Reinsch, eds. (1971). Handbook for Automatic Computation, Vol. 2, Linear Algebra, Springer-Verlag, New York. B.S. Garbow, J.M. Boyle, J.J. Dongarra, and C.B. Moler (1972). Matrix Eigensystem Rou tines: EISPACK Guide Extension, Lecture Notes in Computer Science, Vol. 51, Springer Verlag, New York. J.J Dongarra, J.R. Bunch, C.B. Moler, and G.W. Stewart (1979). LINPACK Users' Guide, SIAM Publications, Philadelphia, PA. K. Gallivan, M. Heath, E. Ng, B. Peyton, R. Plemmons, J. Ortega, C. Romine, A. Sameh, and R. Voigt {1990). Parallel Algorithms for Matrix Computations, SIAM Publications, Philadelphia, PA. R. Barrett, M.W. Berry, T.F. Chan, J. Demmel, J. Donato, J. Dongarra, V. Eijkhout, R. Pozo, C. Romine, and H. van der Vorst (1993). Templates for the Solution of Linear Systems: Building Blocks for Iterative Methods, SIAM Publications, Philadelphia, PA. L.S. Blackford, J. Choi, A. Cleary, E. D'Azevedo, J. Demmel, I. Dhillon, J. Dongarra, S. Ham marling, G. Henry, A. Petitet, K. Stanley, D. Walker, and R.C. Whaley {1997). ScaLA PACK U.�ers' Guide, SIAM Publications, Philadelphia, PA. J.J. Dongarra, I.S. Duff, D.C. Sorensen, and H. A. van der Vorst (1998). Numerical Linear Algebra on High-Performance Computers, SIAM Publications, Philadelphia, PA. E. Anderson, Z. Bai, C. Bischof, S. Blackford, J. Demmel, J. Dongarra, J. Du Croz, A. Greenbaum, S. Hammarling, A. McKenney, and D. Sorensen (1999). LAPACK Users' Guide, third edition, SIAM Publications, Philadelphia, PA. Z. Bai, J. Demmel, J. Dongarra, A. Ruhe, and H. van der Vorst (2000). Templates for the Solution of Algebraic Eigenvalue Problems: A Practical Guide, SIAM Publications, Philadelphia, PA. V.A. Barker, L.S. Blackford, J. Dongarra, J. Du Croz, S. Hammarling, M. Marinova, J. Was niewski, and P. Yalamov (2001). LAPACK95 Users' Guide, SIAM Publications, Philadel phia.

Useful URLs

GVL

MATLAB demo scripts and functions, master bibliography, list of errata.

http://www.cornell.edu/cv/GVL

Netlib

Huge repository of numerical software including LAPACK.

http://www.netlib.org/index.html

Matrix Market

Test examples for matrix algorithms.

http://math.nist.gov/MatrixMarket/

Matlab Central

Matlab functions, demos, classes, toolboxes, videos.

http://www.mathworks.com/matlabcentral/

University of Florida Sparse Matrix Collections

Thousands of sparse matrix examples in several formats.

http://www.cise.ufl.edu/research/sparse/matrices/

Pseudospectra Gateway

Grapical tools for pseudospectra.

http://www.cs.ox.ac.uk/projects/pseudospectra/

ARPACK

Software for large sparse eigenvalue problems

http://www.caam.rice.edu/software/ARPACK/

Innovative Computing Laboratory

State-of-the-art high performance matrix computations.

http://icl.cs.utk.edu/

xix