[eigen] LevenbergMarquardt VC2008 error

[ Thread Index | Date Index | More lists.tuxfamily.org/eigen Archives ]


Hi Thomas,

 

I think you are the right person for asking. While compiling my NonlinearLeastSquareFitterTest with MSVS 2008,  I get the following error message

 

Compiling...
NonlinearLeastSquareFitterTest.cpp
eigen3\eigen\src\core\transpose.h(120) : error C2440: 'return' : cannot convert from 'const double *' to 'double *'
        Conversion loses qualifiers
        eigen\src\core\transpose.h(120) : while compiling class template member function 'double *Eigen::TransposeImpl::data(void)'
        with
        [
            MatrixType=Eigen::Block<EIGEN::MATRIX,-1,-1,false>,
            StorageKind=Eigen::Dense
        ]
        eigen3\eigen\src\core\transpose.h(69) : see reference to class template instantiation 'Eigen::TransposeImpl' being compiled
        with
        [
            MatrixType=Eigen::Block<EIGEN::MATRIX,-1,-1,false>,
            StorageKind=Eigen::Dense
        ]
        eigen3\unsupported\eigen\src\nonlinearoptimization\lmpar.h(218) : see reference to class template instantiation 'Eigen::Transpose' being compiled
        with
        [
            MatrixType=Eigen::Block<EIGEN::MATRIX,-1,-1,false>
        ]
        eigen3\unsupported\eigen\src\nonlinearoptimization\levenbergmarquardt.h(279) : see reference to function template instantiation 'void Eigen::internal::lmpar2(const Eigen::ColPivHouseholderQR<_MatrixType> &,const Eigen::Matrix<_Scalar,_Rows,_Cols> &,const Eigen::Matrix<_Scalar,_Rows,_Cols> &,Scalar,Scalar &,Eigen::Matrix<_Scalar,_Rows,_Cols> &)' being compiled
        with
        [
            Scalar=double,
            _MatrixType=Eigen::Matrix,
            _Scalar=double,
            _Rows=-1,
            _Cols=1
        ]
        eigen3\unsupported\eigen\src\nonlinearoptimization\levenbergmarquardt.h(222) : while compiling class template member function 'Eigen::LevenbergMarquardtSpace::Status Eigen::LevenbergMarquardt::minimizeOneStep(Eigen::Matrix<_Scalar,_Rows,_Cols> &)'
        with
        [
            FunctorType= EigenNonlinearLeastSquareFitter<LINEARCOMBINATION>,
            _Scalar=double,
            _Rows=-1,
            _Cols=1
        ]
        eigen3\unsupported\eigen\src\nonlinearoptimization\levenbergmarquardt.h(166) : while compiling class template member function 'Eigen::LevenbergMarquardtSpace::Status Eigen::LevenbergMarquardt::minimize(Eigen::Matrix<_Scalar,_Rows,_Cols> &)'
        with
        [
            FunctorType= EigenNonlinearLeastSquareFitter<LINEARCOMBINATION>,
            _Scalar=double,
            _Rows=-1,
            _Cols=1
        ]
 
Could you fix it?        
 
Thanks,
 
Oleg Shirokobrod
 


___________________________________________________________________________
This e-mail is confidential and is for the addressee only.   Please refer to
www.oxinst.com/email-statement for regulatory information.


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/