Skip to content
Snippets Groups Projects
Commit 1af50aab authored by jcarpent's avatar jcarpent
Browse files

[Solvers] LeastSquareDiagonalPreconditioner has been fixed in Eigen 3.3.5

parent 61fb41b3
No related branches found
No related tags found
No related merge requests found
...@@ -93,7 +93,7 @@ namespace eigenpy ...@@ -93,7 +93,7 @@ namespace eigenpy
} }
}; };
#if EIGEN_VERSION_AT_LEAST(3,3,0) #if EIGEN_VERSION_AT_LEAST(3,3,5)
template<typename Scalar> template<typename Scalar>
struct LeastSquareDiagonalPreconditionerVisitor : PreconditionerBaseVisitor<Eigen::LeastSquareDiagonalPreconditioner<Scalar> > struct LeastSquareDiagonalPreconditionerVisitor : PreconditionerBaseVisitor<Eigen::LeastSquareDiagonalPreconditioner<Scalar> >
{ {
......
...@@ -25,7 +25,7 @@ namespace eigenpy ...@@ -25,7 +25,7 @@ namespace eigenpy
using namespace Eigen; using namespace Eigen;
DiagonalPreconditionerVisitor<double>::expose(); DiagonalPreconditionerVisitor<double>::expose();
#if EIGEN_VERSION_AT_LEAST(3,3,0) #if EIGEN_VERSION_AT_LEAST(3,3,5)
LeastSquareDiagonalPreconditionerVisitor<double>::expose(); LeastSquareDiagonalPreconditionerVisitor<double>::expose();
#endif #endif
IdentityPreconditionerVisitor::expose(); IdentityPreconditionerVisitor::expose();
......
...@@ -17,7 +17,7 @@ ...@@ -17,7 +17,7 @@
#include "eigenpy/solvers/solvers.hpp" #include "eigenpy/solvers/solvers.hpp"
#include "eigenpy/solvers/ConjugateGradient.hpp" #include "eigenpy/solvers/ConjugateGradient.hpp"
#if EIGEN_VERSION_AT_LEAST(3,3,0) #if EIGEN_VERSION_AT_LEAST(3,3,5)
#include "eigenpy/solvers/LeastSquaresConjugateGradient.hpp" #include "eigenpy/solvers/LeastSquaresConjugateGradient.hpp"
#endif #endif
...@@ -27,7 +27,7 @@ namespace eigenpy ...@@ -27,7 +27,7 @@ namespace eigenpy
{ {
using namespace Eigen; using namespace Eigen;
ConjugateGradientVisitor< ConjugateGradient<MatrixXd,Lower|Upper> >::expose(); ConjugateGradientVisitor< ConjugateGradient<MatrixXd,Lower|Upper> >::expose();
#if EIGEN_VERSION_AT_LEAST(3,3,0) #if EIGEN_VERSION_AT_LEAST(3,3,5)
LeastSquaresConjugateGradientVisitor< LeastSquaresConjugateGradient<MatrixXd, LeastSquareDiagonalPreconditionerFix<MatrixXd::Scalar> > >::expose(); LeastSquaresConjugateGradientVisitor< LeastSquaresConjugateGradient<MatrixXd, LeastSquareDiagonalPreconditionerFix<MatrixXd::Scalar> > >::expose();
#endif #endif
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment