Skip to content

Commit

Permalink
fix: bug when support set is like range(k)
Browse files Browse the repository at this point in the history
  • Loading branch information
bbayukari committed May 27, 2024
1 parent c5ec58c commit ce9c4a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Algorithm.h
Original file line number Diff line number Diff line change
Expand Up @@ -438,7 +438,7 @@ class Algorithm {
}

// If A_U not change, U will not change and we can stop.
if (A_U.size() == 0 || A_U.maxCoeff() == T0 - 1) break;
if (this->U_size < N && (A_U.size() == 0 || A_U.maxCoeff() == T0 - 1)) break;

// Update & Restore beta, A from U
slice_restore(beta_U, U_ind, beta);
Expand Down

0 comments on commit ce9c4a6

Please sign in to comment.