mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-08-13 20:26:03 +08:00
Add missing braces in Umeyama.h
(cherry picked from commit 1321821e86ebbfdf8ccda7f89b59f19feb023dbc)
This commit is contained in:
parent
af3ca50f0b
commit
9b3d104c02
@ -136,9 +136,10 @@ umeyama(const MatrixBase<Derived>& src, const MatrixBase<OtherDerived>& 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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user