We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2155daf commit 3feeedeCopy full SHA for 3feeede
bbs3d/src/cpu_bbs3d/bbs3d.cpp
@@ -153,14 +153,16 @@ void BBS3D::calc_score(
153
const std::uint32_t bucket_index = (hash + j) % num_buckets;
154
const Eigen::Vector4i& bucket = buckets[bucket_index];
155
156
+ if (bucket.w() == 0) {
157
+ break;
158
+ }
159
+
160
if (bucket.x() != coord.x() || bucket.y() != coord.y() || bucket.z() != coord.z()) {
161
continue;
162
}
163
- if (bucket.w() == 1) {
- trans.score++;
- break;
- }
164
+ trans.score++;
165
166
167
168
@@ -255,4 +257,4 @@ void BBS3D::localize() {
255
257
has_localized_ = true;
256
258
259
-} // namespace cpu
260
+} // namespace cpu
0 commit comments