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

Incorrect solution from SPQR

Tags: None
(comma "," separated)
tonyj
Registered Member
Posts
3
Karma
0

Incorrect solution from SPQR

Wed Jan 28, 2015 9:28 pm
I'm trying use Eigen with SuiteSparse, and I am getting incorrect solutions for the Ax = b problem using Eigen's SPQR (SuiteSparseQRSupport) routines. I'm using Eigen 3.2.3 and Suitesparse 4.2.1. I compiled SuiteSparse in Visual Studio 2010 using the suitesparse-metis-for-windows project.

I can get the correct solution from Eigen's built-in SparseQR, but SparseQR is too slow for the large sparse matrices (30000 * 30000, 100,000 non zeros) that I have to deal with. I can also get the correct solution by using SuiteSparseQR directly (by using the CHOLMOD data structures and SuiteSparseQR's solve routine), but I would like to use Eigen for its simpler programming interface.

Any help would be appreciated. Thanks
User avatar
ggael
Moderator
Posts
3447
Karma
19
OS

Re: Incorrect solution from SPQR

Thu Jan 29, 2015 8:17 am
At this point, the best is probably that you look at Eigen's SPQR wrapper code to see if the calls to SPQR are the same as in your hand coded version. If you don't see anything obvious, then export your matrix (see http://eigen.tuxfamily.org/dox-devel/gr ... tml#title3) and send us a zip.
tonyj
Registered Member
Posts
3
Karma
0

Re: Incorrect solution from SPQR

Thu Jan 29, 2015 8:44 pm
I can export the matrices to matrix market format. Where do I send them to?
User avatar
ggael
Moderator
Posts
3447
Karma
19
OS
tonyj
Registered Member
Posts
3
Karma
0

Re: Incorrect solution from SPQR

Wed Feb 04, 2015 7:56 pm
Thank you for your help!


Bookmarks



Who is online

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