Permutation matrix P in the qr function
이전 댓글 표시
Hello,
I understand that using the following sintax
[Q,R,P]=qr(A)
I obtain the QR decomposition of the matrix A and, P is a permutation matrix that reorder A such that AP=QR where abs(diag(R)) is decreasing.
How this matrix P is obtained?
Let's call the new matrx B=AP. Are the columns of the matrix B ordered from the most to the least independent?
Thank you in advance,
Gabri
채택된 답변
추가 답변 (1개)
Shiva Kalyan Diwakaruni
2021년 3월 9일
0 개 추천
Permutation information, returned as a matrix or vector. The shape of P depends on the value of outputForm. Also, qr selects P to satisfy different criteria depending on whether the first input matrix is full or sparse:
- Full — qr selects P so that abs(diag(R)) is decreasing.
- Sparse — qr selects P to reduce fill-in in R.
please refer to the below link for more information
hope it helps,
thanks.
카테고리
도움말 센터 및 File Exchange에서 Creating and Concatenating Matrices에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!