Registered Member
|
Hello,
I am trying to use CG to solve A*X=B. Seems that CG is only available in the development branch right now? Anyway, I have a strange compile error.
It is directly copied from the document. However, there is a compile error here: Error: no match for call to ‘(Eigen::ConjugateGradient<Eigen::SparseMatrix<double, 0, int>, 1, Eigen::DiagonalPreconditioner<double> >) (Eigen::SparseMatrix<double, 0, int>&)’ Am I missing something? |
Registered Member
|
I figured it out, it should be
cg.solver(A);
|
Moderator
|
hm, no, it's rather:
cg.compute(A); There is no such "solver" function. |
Registered users: Bing [Bot], Google [Bot], Yahoo [Bot]