Registered Member
|
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. |
Moderator
|
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 |
Registered Member
|
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 ~ |
Moderator
|
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.
|
Registered users: Bing [Bot], Google [Bot], Sogou [Bot]