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

how can i solve a sparse least square problem?

Tags: None
(comma "," separated)
gohkgohk
Registered Member
Posts
2
Karma
0
I can only from dense least square problem example in eigen?
can i use the build in sparse matrix to solve the least square problem?
if yes, then how to do it?
thank you
P.s. MS VC++ 2012
User avatar
ggael
Moderator
Posts
3447
Karma
19
OS
Two options, either form the normal equation and solve it with either SimplicialLDLT or SparseLU or ConjugateGradients solvers or directly use the SparseQR solver. See these two pages for examples:

http://eigen.tuxfamily.org/dox-devel/gr ... parse.html
http://eigen.tuxfamily.org/dox-devel/gr ... stems.html


Bookmarks



Who is online

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