add_coset not _real_ slow anymore

This commit is contained in:
2019-12-10 22:26:58 -05:00
parent 0473bffa30
commit 99030b77b0

View File

@@ -125,7 +125,6 @@ void add_row(
};
// add a new coset to the coset table, picking up where the last call left off.
// todo: this part is _real_ slow.
bool add_coset(
int ngens,
int *coset,
@@ -135,7 +134,6 @@ bool add_coset(
thrust::host_vector<int> cosets(dcosets.begin() + offset, dcosets.end());
*coset = dcosets.size() / ngens;
// todo: this part especially.
while (cosets[*hint - offset] >= 0) {
*hint = *hint + 1;
if (*hint - offset >= cosets.size())