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

ColPivHouseholderQR.h

Tags: None
(comma "," separated)
ddimitrov
Registered Member
Posts
4
Karma
0

ColPivHouseholderQR.h

Mon Jan 14, 2013 1:37 pm
Hello,
In function compute() in file ColPivHouseholderQR.h, when applying the Householder transformation, what is the rationale behind using k+1 in &m_temp.coeffRef(k+1), instead of simply using &m_temp.coeffRef(0)?

When k=cols()-1, wouldn't coeffRef(k+1) cause a problem (given m_temp.resize(cols))?

Thanks,
Dimitar
User avatar
ggael
Moderator
Posts
3447
Karma
19
OS

Re: ColPivHouseholderQR.h

Mon Jan 14, 2013 9:25 pm
I cannot think about any good reason. At least it is harmless since when k=cols()-1 then applyHouseholderOnTheLeft expect a temporary buffer of size 0.
ddimitrov
Registered Member
Posts
4
Karma
0

Re: ColPivHouseholderQR.h

Mon Jan 14, 2013 9:49 pm
Thanks


Bookmarks



Who is online

Registered users: Bing [Bot], Google [Bot], Sogou [Bot], Yahoo [Bot]