





Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Instructions for completing problem set 7 in math 6800, which involves computing the qr-factorization and eigenvalues of a real, symmetric, tridiagonal matrix using householder triangularization and the qr-algorithm with shifts. Students are required to write subprograms, called myqrtridiag and myeigtridiag, to perform these tasks. The document also suggests testing the code with random matrices of size n = 10 and observing the convergence of the iteration.
Typology: Assignments
1 / 9
This page cannot be seen from the preview
Don't miss anything!






Math 6800
Due: Monday, 11/22/
Qk =
Fk I 2
where I 1 and I 2 are (k−1)×(k−1) and (n−k−1)×(n−k−1) identity matrices, respectively, and F = I − 2 vvT^ /‖v‖^2 is a 2 × 2 Householder reflector, instead of the more general form given in equation (10.2) of the text. Having computed the QR-factorization of T , we are interested in the product RQ (to find eigenvalues of T using the QR-algorithm). To do this, we do not form Q explicitly, but rather apply the v’s that define the 2 × 2 F ’s to R. This product can be obtained following algorithm 10.2 or 10.3 with suitable modifications given that the v’s are only 2-vectors and R is a banded matrix for the case here. Write a subprogram, called myQRtridiag say, that takes as input a symmetric tridiagonal matrix T and returns a tridiagonal matrix U = RQ. In writing your code, do not worry about storing your matrices compactly (i.e. they can be saved as a full square matrix with lots of zeros), but do take advantage of symmetry and sparsity when possible in order to reduce the operation count. You should check your code using Matlab’s qr function.