From 7ae41e6b4073f09af00a67e14ca69809806ff438 Mon Sep 17 00:00:00 2001 From: koldo Date: Wed, 4 Mar 2020 13:12:41 +0000 Subject: [PATCH] *Eigen: Solved compiler error with CLANG git-svn-id: svn://ultimatepp.org/upp/trunk@14122 f0d560ea-af0d-0410-9eb7-867de7ffcac7 --- uppsrc/plugin/Eigen/Eigen/src/Geometry/Umeyama.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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();