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

Commit

Permalink
Polyhedron_base.is_full_dimensional: Merge into ConvexSet_base.is_ful…
Browse files Browse the repository at this point in the history
…l_dimensional
  • Loading branch information
Matthias Koeppe committed Jun 10, 2021
1 parent 92f0610 commit 03a31ef
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 18 deletions.
11 changes: 11 additions & 0 deletions src/sage/geometry/convex_set.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,17 @@ def is_full_dimensional(self):
Boolean. Whether the polyhedron is not contained in any strict
affine subspace.
EXAMPLES::
sage: c = Cone([(1,0)])
sage: c.is_full_dimensional()
False
sage: polytopes.hypercube(3).is_full_dimensional()
True
sage: Polyhedron(vertices=[(1,2,3)], rays=[(1,0,0)]).is_full_dimensional()
False
"""
return self.dim() == self.ambient_dim()

Expand Down
18 changes: 0 additions & 18 deletions src/sage/geometry/polyhedron/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -9814,24 +9814,6 @@ def edge_label(i, j, c_ij):
else:
return MatrixGroup(matrices)

def is_full_dimensional(self):
"""
Return whether the polyhedron is full dimensional.
OUTPUT:
Boolean. Whether the polyhedron is not contained in any strict
affine subspace.
EXAMPLES::
sage: polytopes.hypercube(3).is_full_dimensional()
True
sage: Polyhedron(vertices=[(1,2,3)], rays=[(1,0,0)]).is_full_dimensional()
False
"""
return self.dim() == self.ambient_dim()

def is_combinatorially_isomorphic(self, other, algorithm='bipartite_graph'):
r"""
Return whether the polyhedron is combinatorially isomorphic to another polyhedron.
Expand Down

0 comments on commit 03a31ef

Please sign in to comment.