Эх сурвалжийг харах

Merge branch 'master' of https://github.com/Victor-Savu/libigl

Former-commit-id: 91b98f234a37460114121096f63957d2ed69fd21
Alec Jacobson 11 жил өмнө
parent
commit
e9e4f3748b

+ 2 - 0
include/igl/svd3x3/svd3x3_avx.cpp

@@ -99,8 +99,10 @@ IGL_INLINE void igl::svd3x3_avx(
 }
 }
 #pragma runtime_checks( "u", restore )
 #pragma runtime_checks( "u", restore )
 
 
+#ifdef IGL_STATIC_LIBRARY
 // forced instantiation
 // forced instantiation
 template void igl::svd3x3_avx(const Eigen::Matrix<float, 3*8, 3>& A, Eigen::Matrix<float, 3*8, 3> &U, Eigen::Matrix<float, 3*8, 1> &S, Eigen::Matrix<float, 3*8, 3>&V);
 template void igl::svd3x3_avx(const Eigen::Matrix<float, 3*8, 3>& A, Eigen::Matrix<float, 3*8, 3> &U, Eigen::Matrix<float, 3*8, 1> &S, Eigen::Matrix<float, 3*8, 3>&V);
 // doesn't even make sense with double because the wunder-SVD code is only single precision anyway...
 // doesn't even make sense with double because the wunder-SVD code is only single precision anyway...
 template void igl::svd3x3_avx<float>(Eigen::Matrix<float, 24, 3, 0, 24, 3> const&, Eigen::Matrix<float, 24, 3, 0, 24, 3>&, Eigen::Matrix<float, 24, 1, 0, 24, 1>&, Eigen::Matrix<float, 24, 3, 0, 24, 3>&);
 template void igl::svd3x3_avx<float>(Eigen::Matrix<float, 24, 3, 0, 24, 3> const&, Eigen::Matrix<float, 24, 3, 0, 24, 3>&, Eigen::Matrix<float, 24, 1, 0, 24, 1>&, Eigen::Matrix<float, 24, 3, 0, 24, 3>&);
 #endif
 #endif
+#endif