From 9b3d104c0239d52477bfd25961dbd41007cc1155 Mon Sep 17 00:00:00 2001 From: Rasmus Munk Larsen Date: Tue, 9 May 2023 19:10:50 +0000 Subject: [PATCH] Add missing braces in Umeyama.h (cherry picked from commit 1321821e86ebbfdf8ccda7f89b59f19feb023dbc) --- Eigen/src/Geometry/Umeyama.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Eigen/src/Geometry/Umeyama.h b/Eigen/src/Geometry/Umeyama.h index 0c167c76b..2a5c395b2 100644 --- a/Eigen/src/Geometry/Umeyama.h +++ b/Eigen/src/Geometry/Umeyama.h @@ -136,9 +136,10 @@ umeyama(const MatrixBase& src, const MatrixBase& dst, boo // Eq. (39) VectorType S = VectorType::Ones(m); - if ( svd.matrixU().determinant() * svd.matrixV().determinant() < 0 ) + if ( svd.matrixU().determinant() * svd.matrixV().determinant() < 0 ) { Index tmp = m - 1; S(tmp) = -1; + } // Eq. (40) and (43) Rt.block(0,0,m,m).noalias() = svd.matrixU() * S.asDiagonal() * svd.matrixV().transpose();