ull vcol = 0;
//find the columns entry for this cell as well
- for (int i = 0; i < seqVec[vrow].size(); i++) { if (seqVec[vrow][i].index == row) { vcol = i; break; } }
-
+ for (int i = 0; i < seqVec[vrow].size(); i++) {
+ if (seqVec[vrow][i].index == row) { vcol = i; break; }
+ }
+
seqVec[vrow][vcol].dist = seqVec[row][col].dist;
return 0;
for (int i = 0; i < seqVec.size(); i++) {
for (int j = 0; j < seqVec[i].size(); j++) {
-
+
+ if (m->control_pressed) { return smallDist; }
+
//already checked everyone else in row
if (i < seqVec[i][j].index) {
return col;
}
catch(exception& e) {
- m->errorOut(e, "SparseMatrix", "getSmallestCell");
+ m->errorOut(e, "SparseDistanceMatrix", "getSmallestCell");
exit(1);
}
}
return 0;
}
catch(exception& e) {
- m->errorOut(e, "SparseMatrix", "getSmallestCell");
+ m->errorOut(e, "SparseDistanceMatrix", "sortSeqVec");
exit(1);
}
}