Skip to content
This repository has been archived by the owner on Jan 30, 2023. It is now read-only.

Commit

Permalink
Polyhedron_base.interior: Handle the empty polyhedron correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
mkoeppe committed Jun 12, 2021
1 parent 6ab5677 commit c085d30
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/sage/geometry/polyhedron/base.py
Expand Up @@ -8425,7 +8425,15 @@ def interior(self):
sage: P_lower.interior()
The empty polyhedron in ZZ^2
TESTS::
sage: Empty = Polyhedron(ambient_dim=2); Empty
The empty polyhedron in ZZ^2
sage: Empty.interior() is Empty
True
"""
if self.is_open():
return self
if not self.is_full_dimensional():
return self.parent().element_class(self.parent(), None, None)
return self.relative_interior()
Expand Down

0 comments on commit c085d30

Please sign in to comment.