Registered Member
|
I have a system that will solve with the sparse Eigen::ConjugateGradient solver class but will not compile when I switch the solver to Eigen::SimplicialCholesky<SpMat>. This is the error VS2012 throws.
Error 1 error C2664: 'Eigen::SparseTriangularView<MatrixType,Mode>::SparseTriangularView(const MatrixType &)' : cannot convert parameter 1 from 'const Eigen::Transpose<MatrixType>' to 'const Eigen::Transpose<MatrixType> &' c:\users\mflamer\dropbox\dev\eigen-eigen-2249f9c22fe8\eigen\src\sparsecholesky\simplicialcholesky.h 333[/color][/color] This is how I'm using the library. As you can see, I am wrapping some existing vector types. I'm pretty sure this is not the problem because I tried with some standard Eigen vectors and it made no difference. Also, the CG solver never complained about the Mapped vectors.
Thanks for any help. |
Moderator
|
What is SpMat? This error message does not make sense:
cannot convert 'const Eigen::Transpose<MatrixType>' to 'const Eigen::Transpose<MatrixType> &' some MSVC weirdness again... Do you have an older MSVC version to test? One thing you might try, in simplicialcholesky.h, line 333:
->
|
Registered users: Bing [Bot], Google [Bot], Sogou [Bot]