File tree Expand file tree Collapse file tree 1 file changed +10
-10
lines changed
Expand file tree Collapse file tree 1 file changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -955,17 +955,17 @@ struct Factorizer {
955955 }
956956
957957 // Step 2: Identify free rows
958- auto it = smoothNumberValues.begin ();
959958 for (size_t i = 0U ; i < primes.size (); i++) {
960- if (!result.marks [i]) {
961- boost::dynamic_bitset<size_t > r (rows);
962- for (size_t j = 0U ; j < rows; ++j) {
963- r[j] = smoothNumberValues[j][i];
964- }
965- // We find a free column, so the corresponding row
966- // in the reduced matrix is a solution row.
967- result.solutionColumns .emplace_back (r, i);
968- }
959+ if (result.marks [i]) {
960+ continue ;
961+ }
962+ boost::dynamic_bitset<size_t > r (rows);
963+ for (size_t j = 0U ; j < rows; ++j) {
964+ r[j] = smoothNumberValues[j][i];
965+ }
966+ // We find a free column, so the corresponding row
967+ // in the reduced matrix is a solution row.
968+ result.solutionColumns .emplace_back (r, i);
969969 }
970970
971971 if (result.solutionColumns .empty ()) {
You can’t perform that action at this time.
0 commit comments