diff --git a/unsupported/Eigen/src/NonLinear/HybridNonLinearSolver.h b/unsupported/Eigen/src/NonLinear/HybridNonLinearSolver.h index 6c309504f..ed0eeb5d2 100644 --- a/unsupported/Eigen/src/NonLinear/HybridNonLinearSolver.h +++ b/unsupported/Eigen/src/NonLinear/HybridNonLinearSolver.h @@ -3,7 +3,7 @@ template class HybridNonLinearSolver { public: - HybridNonLinearSolver(const FunctorType &_functor) + HybridNonLinearSolver(FunctorType &_functor) : functor(_functor) {} enum Status { @@ -80,7 +80,7 @@ public: int njev; int iter; private: - const FunctorType &functor; + FunctorType &functor; int n; Scalar sum; bool sing; diff --git a/unsupported/Eigen/src/NonLinear/LevenbergMarquardt.h b/unsupported/Eigen/src/NonLinear/LevenbergMarquardt.h index 5f46c6aab..8952a1dbf 100644 --- a/unsupported/Eigen/src/NonLinear/LevenbergMarquardt.h +++ b/unsupported/Eigen/src/NonLinear/LevenbergMarquardt.h @@ -3,7 +3,7 @@ template class LevenbergMarquardt { public: - LevenbergMarquardt(const FunctorType &_functor) + LevenbergMarquardt(FunctorType &_functor) : functor(_functor) {} enum Status { @@ -101,7 +101,7 @@ public: int njev; int iter; private: - const FunctorType &functor; + FunctorType &functor; int n; int m; Matrix< Scalar, Dynamic, 1 > wa1, wa2, wa3, wa4;