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
2619
Karma
16
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
2619
Karma
16
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: Ahmed.AbouElhamayed, andreas_k, areid, Baidu [Spider], Bing [Bot], bszlrd, capslock, davidemme, edward.81, emrecio, Exabot [Bot], Google [Bot], google01103, Holden Caulfield, ianp5a, koriun, La Ninje, lazyit, ma9ick, Majestic-12 [Bot], nezumi, osirismurcia, paulus3005, pedrorodriguez, Saabhero, slangkamp, Steve Guilford, supaiku, TheraHedwig, toad, tresmon, tysontan, Yahoo [Bot]