Registered Member
|
Hello,
I just started to use Eigen because I need a QR decomposition in my program. But Eigen seems to crash on my system with a simple test program:
When I run this, I get the following error:
Did I do something wrong or is this a bug in the lib? Thanks! |
Registered Member
|
I think A need to be a square matrix
|
Registered Member
|
But it should be possible to do a QR decompositon for a mxn matrix, where n!=m... |
Moderator
|
Indeed, in Eigen2.0, QR was designed for matrices where m>=n. Otherwise the matrix R is not triangular but trapezoidal, and therefore it is less useful. I would recommend you Eigen3-beta1 which already allows you to perform this QR decomposition and support trapezoidal matrices. If you really need Eigen2.0, this is just a matter one line change. Finally, are you sure want the QR dec of a matrix with m<n and not its RQ dec ? (which is essentially the QR dec of the transpose of the matrix).
|
Registered users: Bing [Bot], Google [Bot], Sogou [Bot]