diff options
author | 2009-09-11 20:50:01 +0200 | |
---|---|---|
committer | 2009-09-11 20:50:01 +0200 | |
commit | 8b84c3733a53514045e23b89fffb1b31418c63cf (patch) | |
tree | cfe0bec3f23505205c9a0a997118b7be37621e1b /unsupported/Eigen | |
parent | 72746838ad381ea974143d92b30296c2597d26c3 (diff) |
functors need not be const
Diffstat (limited to 'unsupported/Eigen')
-rw-r--r-- | unsupported/Eigen/src/NonLinear/HybridNonLinearSolver.h | 4 | ||||
-rw-r--r-- | unsupported/Eigen/src/NonLinear/LevenbergMarquardt.h | 4 |
2 files changed, 4 insertions, 4 deletions
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<typename FunctorType, typename Scalar=double> 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<typename FunctorType, typename Scalar=double> 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; |