This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Reconstruct a Matrix with the QR decomposition

Tags: None
(comma "," separated)
trrrigo
Registered Member
Posts
13
Karma
0
Hi,
How can I reconstruct a Matrix with the QR decomposition with Eigen please?
Because there is no method "matrixR()" or "reconstructedMatrix()" in HouseHolderQR, FullPivHouseHolderQR or PartialPivHouseHolderQR.
Thanks.
User avatar
ggael
Moderator
Posts
3447
Karma
19
OS
you are right, they are laking some shortcuts, nevertheless you can do:

MatrixXd r = qr.matrixQR().template triangularView<Upper>();
original = qr.householderQ() * r;
trrrigo
Registered Member
Posts
13
Karma
0


Bookmarks



Who is online

Registered users: Baidu [Spider], Bing [Bot], Google [Bot], rblackwell