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 satisfy for all such that The structure of a Hessenberg matrix can be viewed as that of an upper triangular matrix with an additional first subdiagonal. A by 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 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.
GivensQR factorisations
Let denote a square upper Hessenberg matrix. Givens rotations can be used to construct a QR factorisation of via a sequence of multiplications from the left. This process known as the GivensQR factorisation is illustrated below for a by upper Hessenberg matrix:
Note that the arrows indicate multiplication from the left. These matrices are chosen to zeroout the entries indicated by a In particular,
where is the vector containing the entries and in the first column of ;
where is the vector containing the entries and in the second column of ;
where is the vector containing the entries and in the third column of
where are by Givens rotations.
The above process can be written in pseudocode as follows:
for dots
end
where the matrices are Givens rotations embedded in the identity matrix as indicated above.
Task
Write a function file givensqr.m to compute the GivensQR factorisation of a general square upper Hessenberg matrix Your implementation should fulfil the following requirements and contain the following:
Input variables: square upper Hessenberg matrix
Output variables: matrices in this exact order.
Your implementation should not generate the matrices : instead it should use the corresponding imbedded rotations
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 which was discussed in Lab
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
