Sfoglia il codice sorgente

undo changes to cat.cpp causing insane performance bug

Former-commit-id: 446cb4448c9eeaca0176373fdb067931a6382d8e
Alec Jacobson 10 anni fa
parent
commit
f6b66e5351
1 ha cambiato i file con 3 aggiunte e 1 eliminazioni
  1. 3 1
      include/igl/cat.cpp

+ 3 - 1
include/igl/cat.cpp

@@ -36,7 +36,9 @@ IGL_INLINE void igl::cat(
     return;
   }
 
-  SparseMatrix<Scalar, RowMajor> dyn_C;
+  // This **must** be DynamicSparseMatrix, otherwise this implementation is
+  // insanely slow
+  DynamicSparseMatrix<Scalar, RowMajor> dyn_C;
   if(dim == 1)
   {
     assert(A.cols() == B.cols());