QR with columns pivoting

Is there any sample matlab code computing QR decomposition with columns pivoting for a matrix?
I do not need an internal function, I would like to know the method...
Thanks for your help...

2 commentaires

Haidar
Haidar il y a environ 5 heures
Hello, I am trying to find a set of indices J, containing the r column pivots of a matrix using CPQR, how can I do that? Thanks
Christine Tobler
Christine Tobler le 1 Mar 2026 à 12:19
In practice, call
[~, ~, J] = qr(A, 'econ', 'vector')
To find the underlying algorithm as was the original question, see the reference LAPACK implemementation (Fortran code) for dlaqp2 (this doesn't have some of the optimizations in dlaqp3, but is easier to read).

Connectez-vous pour commenter.

Réponses (0)

Catégories

En savoir plus sur Linear Algebra dans Centre d'aide et File Exchange

Question posée :

le 15 Nov 2012

Commenté :

le 1 Mar 2026 à 12:19

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by