I want to use a least squares problem with the use of Eigen library. My options are 2,
- sysAAA.jacobiSvd( Eigen::ComputeThinU | Eigen::ComputeThinV ).solve( sysBBB )
- sysAAA.colPivHouseholderQr().solve( sysBBB );
I was using the first in the beginning, but it proved to be very slow (1)(2).
So I went to the second solution (other methods aren't appropriate for my case, because they require special matrices (2) )
Does colPivHouseholderQr().solve give a least squares solution?
My impression is that it doesn't (3), but I want to be sure before looking for a "workaround".