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

Commit

Permalink
cache is_simple and is_simplicial for CombinatorialPolyhedron
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonathan Kliem committed Apr 5, 2022
1 parent 78bfb6c commit d64cf60
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1957,6 +1957,7 @@ cdef class CombinatorialPolyhedron(SageObject):
"""
return self.is_bounded() and (self.dim()+1 == self.n_vertices())

@cached_method
def is_simplicial(self):
r"""
Test whether the polytope is simplicial.
Expand Down Expand Up @@ -2067,6 +2068,7 @@ cdef class CombinatorialPolyhedron(SageObject):
d = dim
return smallInteger(simpliciality)

@cached_method
def is_simple(self):
r"""
Test whether the polytope is simple.
Expand Down

0 comments on commit d64cf60

Please sign in to comment.