Re: [eigen] LevenbergMarquardt VC2008 error |
[ Thread Index | Date Index | More lists.tuxfamily.org/eigen Archives ]
Err..!! ?? No, i'm afraid i can not. Benoit, Gael.. any idea ? The code leading to this is unsupported/Eigen/src/NonLinearOptimization/lmpar.h:218 : qr.matrixQR().topLeftCorner(n, n).transpose().template triangularView<Lower>().solveInPlace(wa1); I guess some recent changes about correctness is responsible for this.. ? Should i use some newer API ? I can't reproduce here, the unittests for LevenbergMarquardt in eigen compiles fine here, and my own projects based on eigen that uses LM have no compilation problem either...
-- Thomas Capricelli <orzel@xxxxxxxxxxxxxxx> http://www.freehackers.org/thomas On Tuesday 21 December 2010 10:21:43 SHIROKOBROD Oleg wrote: > 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 > ] |
Mail converted by MHonArc 2.6.19+ | http://listengine.tuxfamily.org/ |