Skip to content

Commit

Permalink
Merge pull request #536 from bbayukari/master
Browse files Browse the repository at this point in the history
[BUG] When support set is range(k)
  • Loading branch information
Mamba413 authored May 30, 2024
2 parents c5ec58c + ce9c4a6 commit ae84e89
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 ae84e89

Please sign in to comment.