Skip to content

Commit 0230d24

Browse files
Refactor (doesn't change logic)
1 parent 6af1e0a commit 0230d24

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

FindAFactor/_find_a_factor.cpp

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff 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()) {

0 commit comments

Comments
 (0)