Skip to content

Commit

Permalink
Fix MSVC build with Matrix operator*
Browse files Browse the repository at this point in the history
src\absolute_pose\modules\main.cpp(773): error C2677: binary '*': no global operator found which takes type 'const Eigen::Matrix<double,1,10,1,1,10>' (or there is no acceptable conversion)
  • Loading branch information
fabiencastan committed Oct 24, 2018
1 parent b04efd5 commit 573fdde
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/absolute_pose/modules/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -770,7 +770,7 @@ opengv::absolute_pose::modules::upnp_main(
{
Eigen::Matrix<double,10,1> s;
upnp_fill_s(quaternion,s);
Eigen::Matrix<double,1,1> valueM = s.transpose() * M * s + 2.0 * C * s;
Eigen::Matrix<double,1,1> valueM = s.transpose() * M * s + C * s * 2.0;
double value = valueM[0] + gamma;

std::vector<std::pair<double,Eigen::Vector4d>,Eigen::aligned_allocator< std::pair<double,Eigen::Vector4d> > >::iterator
Expand Down

0 comments on commit 573fdde

Please sign in to comment.