mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-04-24 02:29:33 +08:00
Add missing braces in Umeyama.h
This commit is contained in:
parent
524c329ab2
commit
1321821e86
@ -135,9 +135,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