Schur decomposition and QR algorithm for eigenvalue problems
17 次查看(过去 30 天)
显示 更早的评论
I created a 5x5 complex matrix with one real eigenvalue and two complex conjugate eigenvalue pairs by this piece of code:
N=5;
A=zeros(5);
A(1,1)=3;
A(2,2)=1+sqrt(-1);
A(3,3)=1-sqrt(-1);
A(4,4)=2+sqrt(-1);
A(5,5)=2-sqrt(-1);
V=rand(N);
A=V*A*inv(V)
I then used [U T]=schur(A) to get a strictly upper triangular matrix T with all 5 eigenvalues (the two conjugate pairs as well as the real eigenvalue) on its diagonal. I then used the QR algorithm trying to convert A into an upper triangular matrix: [Q R]=qr(A); A=R*Q. The iteration converges to a block (quasi) upper triangular matrix with two 2x2 blocks as well as the real eigenvalue along the diagonal. The eigenvalues of the two 2x2 blocks are of course the two conjugate eigenvalue pairs of A. However, the QR algorithm can never produce a strictly upper triangular matrix as the Schur function did. My question is, how does the Schur algorithm in Matlab generate the triangular matrix? The Schur decomposition theorem (e.g., https://en.wikipedia.org/wiki/Schur_decomposition) only states such a upper triangular matrix exists, but it does not provide any specific algorithm for actually generating this matrix. What algorithm does the Matlab function schur use?
0 个评论
回答(1 个)
Cam Salzberger
2016-2-29
Hello Ruye,
I understand that you are wondering how MATLAB could produce an upper-triangular matrix with Schur decomposition, but not with QR decomposition. This is understandable, given QR decomposition is commonly used to help calculate the Schur decomposition.
I believe that a good place to start looking at Schur algorithms is in the LAPACK user guide . There is a section on Schur Factorization which overviews a method that can be used to compute the decomposition.
I hope this helps.
-Cam
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Matrix Computations 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!