Reply to topic

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

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
2195
Karma
15
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
2195
Karma
15
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.

 
Reply to topic

Bookmarks



Who is online

Registered users: Baidu [Spider], Bing [Bot], Exabot [Bot], Google [Bot], google01103, Hans, koriun, La Ninje, MSNbot Media, north, odysseus-art, pesto, SecretCode, Sentynel, Yahoo [Bot], z-uo