瀏覽代碼

mosek qquadprog asserts

Former-commit-id: ca953c2885af2ba9d9d210c15a438d879c501cf5
Alec Jacobson (jalec 12 年之前
父節點
當前提交
e114234703
共有 2 個文件被更改,包括 5 次插入0 次删除
  1. 2 0
      include/igl/mosek/mosek_quadprog.cpp
  2. 3 0
      include/igl/png/Makefile

+ 2 - 0
include/igl/mosek/mosek_quadprog.cpp

@@ -247,7 +247,9 @@ IGL_INLINE bool igl::mosek_quadprog(
   // Q should be square
   assert(Q.rows() == Q.cols());
   // Q should be symmetric
+#ifdef EIGEN_HAS_A_BUG_AND_FAILS_TO_LET_ME_COMPUTE_Q_MINUS_Q_TRANSPOSE
   assert( (Q-Q.transpose()).sum() < FLOAT_EPS);
+#endif
   // Only keep lower triangular part of Q
   SparseMatrix<double> QL;
   //QL = Q.template triangularView<Lower>();

+ 3 - 0
include/igl/png/Makefile

@@ -22,6 +22,9 @@ YIMG_INC=-I$(YIMG)
 INC+=$(YIMG_INC)
 YIMG_STATIC_LIB=$(YIMG)/libyimg.a
 
+# BOOST dependency
+INC+=-I/opt/local/include/
+
 obj: 
 	mkdir -p obj