Skip to content

Commit

Permalink
fix innerBall bug
Browse files Browse the repository at this point in the history
  • Loading branch information
lucaperju committed Jul 23, 2024
1 parent 2ad4bfa commit 4498490
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions include/convex_bodies/hpolytope.h
Original file line number Diff line number Diff line change
Expand Up @@ -195,13 +195,15 @@ class HPolytope {
{
A = A2;
normalized = false;
_inner_ball.second = -1.0;
}


// change the vector b
void set_vec(VT const& b2)
{
b = b2;
_inner_ball.second = -1.0;
}

Point get_mean_of_vertices() const
Expand Down Expand Up @@ -845,6 +847,7 @@ class HPolytope {
A = (A * T).sparseView();
}
normalized = false;
_inner_ball.second = -1.0;
}


Expand All @@ -853,6 +856,7 @@ class HPolytope {
void shift(const VT &c)
{
b -= A*c;
_inner_ball.second = -1.0;
}


Expand Down

0 comments on commit 4498490

Please sign in to comment.