mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-06-04 18:54:00 +08:00
Work around compiler bug in Umeyama.h.
This commit is contained in:
parent
fbf7189bd5
commit
524c329ab2
@ -136,7 +136,8 @@ umeyama(const MatrixBase<Derived>& src, const MatrixBase<OtherDerived>& dst, boo
|
||||
VectorType S = VectorType::Ones(m);
|
||||
|
||||
if ( svd.matrixU().determinant() * svd.matrixV().determinant() < 0 )
|
||||
S(m-1) = -1;
|
||||
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