Own library - least squares

I want to use the least squares problem using the Eigen library. My options: 2,

  • sysAAA.jacobiSvd (Eigen :: ComputeThinU | Eigen :: ComputeThinV) .solve (sysBBB)
  • sysAAA.colPivHouseholderQr (). solve (sysBBB);

I used the first one at the beginning, but it turned out to be very slow (1) (2).

So, I moved on to the second solution (other methods are not suitable for my case, because they require special matrices (2))

Does the colPivHouseholderQr () solution solve the least squares solution?

My impression is that this is not (3), but I want to be sure before looking for a β€œworkaround”.

+4
source share
1 answer

Yes, ColPivHouseholderQr :: solve () computes a least-square solution.

+3
source

Source: https://habr.com/ru/post/1443871/


All Articles