Registered Member
|
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 |
Moderator
|
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.
|
Registered Member
|
Registered users: Bing [Bot], Google [Bot], Sogou [Bot], Yahoo [Bot]