Ver código fonte

missing clear

Former-commit-id: 436b55258b048ba6ea950f80eb6a26399338ff92
Alec Jacobson 8 anos atrás
pai
commit
a49d14db2f
1 arquivos alterados com 1 adições e 0 exclusões
  1. 1 0
      tutorial/703_Decimation/main.cpp

+ 1 - 0
tutorial/703_Decimation/main.cpp

@@ -67,6 +67,7 @@ int main(int argc, char * argv[])
 
     C.resize(E.rows(),V.cols());
     VectorXd costs(E.rows());
+    Q.clear();
     for(int e = 0;e<E.rows();e++)
     {
       double cost = e;