*Eigen: Solved compiler error with CLANG

git-svn-id: svn://ultimatepp.org/upp/trunk@14122 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
koldo 2020-03-04 13:12:41 +00:00
parent 0b0e823cd8
commit 7ae41e6b40

View file

@ -137,7 +137,7 @@ 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;
S[m-1] = -1;
// Eq. (40) and (43)
Rt.block(0,0,m,m).noalias() = svd.matrixU() * S.asDiagonal() * svd.matrixV().transpose();