Browse Source

Keep fixing procrustes not templated

KarlLeell 6 years ago
parent
commit
46db744e3c
1 changed files with 2 additions and 2 deletions
  1. 2 2
      include/igl/procrustes.cpp

+ 2 - 2
include/igl/procrustes.cpp

@@ -48,8 +48,8 @@ IGL_INLINE void igl::procrustes(
   }
 
   // Rotation
-  MatrixXd S = XC.transpose() * YC;
-  MatrixXd T;
+  Matrix<typename DerivedX::Scalar, Dynamic, Dynamic> S = XC.transpose() * YC;
+  Matrix<typename DerivedT::Scalar, Dynamic, Dynamic> T;
   if (includeReflections)
   {
     polar_dec(S,R,T);