diff --git a/uppsrc/plugin/Eigen/Eigen/src/Geometry/Umeyama.h b/uppsrc/plugin/Eigen/Eigen/src/Geometry/Umeyama.h index 7e933fca1..0f596a393 100644 --- a/uppsrc/plugin/Eigen/Eigen/src/Geometry/Umeyama.h +++ b/uppsrc/plugin/Eigen/Eigen/src/Geometry/Umeyama.h @@ -137,7 +137,7 @@ umeyama(const MatrixBase& src, const MatrixBase& dst, boo VectorType S = VectorType::Ones(m); if ( svd.matrixU().determinant() * svd.matrixV().determinant() < 0 ) - S(m-1) = -1; + S[m-1] = -1; // Eq. (40) and (43) Rt.block(0,0,m,m).noalias() = svd.matrixU() * S.asDiagonal() * svd.matrixV().transpose();