Explorar o código

missing clear

Former-commit-id: 436b55258b048ba6ea950f80eb6a26399338ff92
Alec Jacobson %!s(int64=8) %!d(string=hai) anos
pai
achega
a49d14db2f
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  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;