Skip to content

Commit

Permalink
fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
lucaperju committed Aug 16, 2024
1 parent d9bd3c2 commit 3189a0b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions include/random_walks/uniform_accelerated_billiard_walk.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -79,9 +79,9 @@ class BoundaryOracleHeap {
}

public:
Heap() {}
BoundaryOracleHeap() {}

Heap(int n) : n(n), heap_size(0) {
BoundaryOracleHeap(int n) : n(n), heap_size(0) {
heap.resize(n);
vec.resize(n);
}
Expand Down Expand Up @@ -398,7 +398,7 @@ struct AcceleratedBilliardWalk
_Av.setZero(P.num_of_hyperplanes());
_p = p;
_v = GetDirection<Point>::apply(n, rng);
_distances_set = Heap<NT>(P.num_of_hyperplanes());
_distances_set = BoundaryOracleHeap<NT>(P.num_of_hyperplanes());

NT T = -std::log(rng.sample_urdist()) * _L;
Point p0 = _p;
Expand Down

0 comments on commit 3189a0b

Please sign in to comment.