Question: Description Hessenberg matrices Hessenberg matrices H satisfy [ H ] i j = h i j = 0 , for all i , j such

Description
Hessenberg matrices
Hessenberg matrices H satisfy [H]ij=hij=0, for all i,j such that i>j+1. The structure of a Hessenberg matrix can be viewed as that of an upper triangular matrix with an additional (first) subdiagonal. A 4-by-4 example is included below. Hessenberg matrices allow for several simplified algorithms, due to their simplified structure. For example, the computation of eigenvalues relies on transforming a generic matrix AinRnn into an upper Hessenberg matrix, followed by repeated QR factorisations as part of the celebrated QR algorithm: this approach greatly reduces the complexity of eigenvalue computations.
Givens-QR factorisations
Let H denote a square upper Hessenberg matrix. Givens rotations can be used to construct a QR factorisation of H via a sequence of multiplications from the left. This process (known as the Givens-QR factorisation) is illustrated below for a 4-by-4 upper Hessenberg matrix:
Note that the arrows indicate multiplication from the left. These matrices are chosen to zero-out the entries indicated by a +. In particular,
G1=G(c1)o+I2, where c1 is the vector containing the entries 1 and 2 in the first column of H1;
G2=I1o+G(c2)o+I1, where c2 is the vector containing the entries 2 and 3 in the second column of H2;
G3=I2o+G(c3) where c3 is the vector containing the entries 3 and 4 in the third column of H3,
where G(ci) are 2-by-2 Givens rotations.
The above process can be written in pseudocode as follows:
H1=H
for i=1,2,dots
,Hi+1=GiHi
end
R=Hn
where the matrices GiinRnn are Givens rotations embedded in the identity matrix as indicated above.
1
Task
Write a function file givensqr.m to compute the Givens-QR factorisation of a general square upper Hessenberg matrix H. Your implementation should fulfil the following requirements and contain the following:
Input variables: square upper Hessenberg matrix H.
Output variables: matrices Q,R in this exact order.
Your implementation should not generate the nn matrices Gi : instead it should use the corresponding imbedded 22 rotations G(ci).
Your implementation should be generally efficient; in particular, it should avoid computations with zeros or ones.
Comments (using the % sign) providing short descriptions of your implementation to the user.
The implementation should not use the Householder QR factorisation of H(which was discussed in Lab 2).
 Description Hessenberg matrices Hessenberg matrices H satisfy [H]ij=hij=0, for all i,j

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!