We compare the computational cost of performing the QR iteration on unsymmetric vs symmetric matrices. As we expect, the symmetric case is significantly faster.
Unsymmetric
- Cost of upper Hessenberg form:
- QR iteration step: cost using Givens transformations.
Symmetric
- Cost of upper Hessenberg form:
From , we get that is symmetric. So is Hessenberg and symmetric. So it is tri-diagonal symmetric.
Consider now the steps in the QR iteration. Recall that
So remains symmetric. It is also upper Hessenberg, so it remains tri-diagonal symmetric.
- The cost of each QR iteration step is just .
- The first step is expensive, but after that, each iteration is extremely cheap.