mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-07-20 03:44:26 +08:00
Work around compiler bug in Umeyama.h.
(cherry picked from commit 524c329ab23fb565eff8aa2bf36d134e97773a99)
This commit is contained in:
parent
26b8fabd80
commit
af3ca50f0b
@ -137,7 +137,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