浏览代码

undo changes to cat.cpp causing insane performance bug

Former-commit-id: 446cb4448c9eeaca0176373fdb067931a6382d8e
Alec Jacobson 10 年之前
父节点
当前提交
f6b66e5351
共有 1 个文件被更改,包括 3 次插入1 次删除
  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());