How to find the permutation matrix for the qr decomposition?
Show older comments
How to find the permutation matrix for the qr decomposition without using the function "[q,r,e]=qr(A)"?
Accepted Answer
More Answers (1)
Christine Tobler
on 30 Mar 2018
I'm afraid using the three-output syntax is the only way. You can use
[~, ~, p] = qr(A);
but Q and R are still computed, just not returned. Could you tell us some more about why you need the permutation matrix only?
3 Comments
Sergey Solovev
on 30 Mar 2018
John D'Errico
on 30 Mar 2018
So you know how to compute a basic QR, but are not sure how the pivoting was done inside QR?
Sergey Solovev
on 30 Mar 2018
Categories
Find more on Linear Algebra in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!