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

Compiling error with SimplicialLDLT.

Tags: None
(comma "," separated)
xianyongliu
Registered Member
Posts
2
Karma
0
Dear all,

I got a compiling error:
2>f:\shannon\pracinventory\blukcloneinclude\eigeninclude\eigen\src/SparseCore/SparseBlock.h(291) : error C2039: 'THIS_METHOD_IS_ONLY_FOR_ROW_MAJOR_MATRICES' : is not a member of 'Eigen::internal::static_assertion<condition>'

with the code below.
HELP!
Thanks,

//computing and solving the problem.
Eigen::SimplicialLDLT<Eigen::SparseMatrix<double> > solver;
solver.compute(mat);

if(solver.info()!=Eigen::Success) {
// decomposition failed
return;
}

Eigen::VectorXd factors = solver.solve(_b);

if(solver.info()!=Eigen::Success) {
// solving failed
return;
}
else
{
;
}
xianyongliu
Registered Member
Posts
2
Karma
0
Dear all,
my problem was resolved.

It was caused by A = A + A.transpose();

According to the tutorial, we should use B = SparseMatrix<double>(A.transpose()) + A;


Bookmarks



Who is online

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