![]() Registered Member ![]()
|
My code:
#define EIGEN_SUPERLU_SUPPORT #include <Eigen/Core> // basic eigen software #include <Eigen/Sparse> using namespace Eigen; int main() { int n=5; DynamicSparseMatrix<double> a(n,n); a.coeffRef(0,0) = 19.0; a.coeffRef(0,2) = 21.0; a.coeffRef(0,3) = 21.0; a.coeffRef(1,0) = 12.0; a.coeffRef(1,1) = 21.0; a.coeffRef(2,1) = 12.0; a.coeffRef(2,2) = 16.0; a.coeffRef(3,3) = 5.00; a.coeffRef(3,4) = 21.0; a.coeffRef(4,0) = 12.0; a.coeffRef(4,1) = 12.0; a.coeffRef(4,4) = 18.0; SparseMatrix<double> A(a); VectorXd b(n); VectorXd x(n); b[0]=1.0; b[1]=1.5; b[2]=3.0; b[3]=2.1; b[4]=5.0; Eigen::SparseLU<Eigen::SparseMatrix<double>,Eigen::SuperLU> slu(A); //slu.solve(b, &x); } Compile Script: g++ -c -g -I../../../SuperLU_4.0/SRC -I../../../Eigen_Devel/ main2.cpp g++ main2.o -L../../../SuperLU_4.0/lib -lsuperlu_4.0 -L/usr/lib -lblas -lm Compiler Errors: ../../../SuperLU_4.0/lib/libsuperlu_4.0.a(mc64ad.o): In function `mc64ad_': mc64ad.f:(.text+0x10d): undefined reference to `s_wsfe' mc64ad.f:(.text+0x121): undefined reference to `do_fio' mc64ad.f:(.text+0x137): undefined reference to `do_fio' ... If I change top line of code to: #define DEIGEN_SUPERLU_SUPPORT the code compiles but, when executed gives: void Eigen::SparseLU<MatrixType, Backend>::compute(const MatrixType&) [with MatrixType = Eigen::SparseMatrix<double, 0>, int Backend = 3]: Assertion `false && "not implemented yet"' failed. I have stared for hours with no luck. Any help would be greatly appreciated. -Corey |
![]() Registered Member ![]()
|
Well, sounds like that's just not implemented yet - right? I checked, and the code hasn't changed in the dev version, so unless someone happens to be working on it right now, I think you'll need a different solution - however, what that would be, I don't know.
|
![]() Registered Member ![]()
|
Nevermind ... found the problem
It was a linking issue ... |
![]() Registered Member ![]()
|
HI ,
I am also getting same problem .. can you please tell me how you resolved this problem earlier? Thanks in Advance, Regards Abhijit |
Registered users: bartoloni, Bing [Bot], Evergrowing, Google [Bot], ourcraft