Skip to content

Commit ae84e89

Browse files
authored
Merge pull request #536 from bbayukari/master
[BUG] When support set is range(k)
2 parents c5ec58c + ce9c4a6 commit ae84e89

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Algorithm.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -438,7 +438,7 @@ class Algorithm {
438438
}
439439

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

443443
// Update & Restore beta, A from U
444444
slice_restore(beta_U, U_ind, beta);

0 commit comments

Comments
 (0)