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

Are there any built-in LU factorization for sparse matrix?

Tags: None
(comma "," separated)
zhuchenguang
Registered Member
Posts
4
Karma
0
I find it difficult to use the superLU package,so I want to know whether there is a built-in LU factorization for sparse matrix in Eigen......
In fact, I find this: "This beta version introduces built-in LU and QR factorizations for sparse matrices" in the main page. BUT... I can't find the function in the Documentation ......So I don't know how to use these routines.
User avatar
ggael
Moderator
Posts
3447
Karma
19
OS
The class is called SparseLU, e.g.:

x = Eigen::SparseLU<SparseMatrix<double>, Eigen::COLAMDOrdering<int> >(A).solve(b);

Doc: http://eigen.tuxfamily.org/dox-devel/cl ... rseLU.html
zhuchenguang
Registered Member
Posts
4
Karma
0
ggael wrote:The class is called SparseLU, e.g.:

x = Eigen::SparseLU<SparseMatrix<double>, Eigen::COLAMDOrdering<int> >(A).solve(b);

Doc: http://eigen.tuxfamily.org/dox-devel/cl ... rseLU.html


en,thanks very much! It is pretty easy to use!!
BTW, I am using ARPACK for eigenvalues and eigenvectors, I wish Eigen could have a built-in algorithm or provide a wrapper for ARPACK in the future ~
User avatar
ggael
Moderator
Posts
3447
Karma
19
OS
There is a wrapper in unsupported/ (http://eigen.tuxfamily.org/dox-devel/un ... odule.html). Look at the respective unit test in unsupported/test for usage examples.


Bookmarks



Who is online

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