Kaynağa Gözat

missing vector include in matlabworksapce

Former-commit-id: ccd041df68da31aab681fc79fc3f2b22001a4729
Alec Jacobson (jalec 11 yıl önce
ebeveyn
işleme
3ac7c1ed69

+ 1 - 3
include/igl/invert_diag.cpp

@@ -1,5 +1,4 @@
 #include "invert_diag.h"
-#include "diag.h"
 
 template <typename T>
 IGL_INLINE void igl::invert_diag(
@@ -7,8 +6,7 @@ IGL_INLINE void igl::invert_diag(
   Eigen::SparseMatrix<T>& Y)
 {
 #ifndef NDEBUG
-  typename Eigen::SparseVector<T> dX;
-  igl::diag(X,dX);
+  typename Eigen::SparseVector<T> dX = X.diagonal().sparseView();
   // Check that there are no zeros along the diagonal
   assert(dX.nonZeros() == dX.size());
 #endif

+ 1 - 0
include/igl/matlab/MatlabWorkspace.cpp

@@ -9,6 +9,7 @@
 // STL
 #include <iostream>
 #include <algorithm>
+#include <vector>
 
 IGL_INLINE igl::MatlabWorkspace::MatlabWorkspace()
 {

+ 12 - 0
scripts/compress.sh

@@ -16,6 +16,18 @@ Compresses all headers *and* sources into igl.h (IGL_HEADER_ONLY)
   exit 1
 fi
 
+#while getopts "I:" opt; do
+#  case $opt in
+#    I)
+#      LIBIGL_INCLUDE=$OPTARG
+#      ;;
+#    \?)
+#    echo "Invalid option: -$OPTARG"
+#      ;;
+#  esac
+#done
+#shift $((OPTIND-1))
+
 if [ "$#" -eq 1 ]
 then
   H_OUT=$1