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

Commit

Permalink
Whitespace fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthias Koeppe committed Jun 7, 2021
1 parent 44cde1e commit fa4c2d2
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 9 deletions.
3 changes: 0 additions & 3 deletions src/sage/geometry/cone.py
Original file line number Diff line number Diff line change
Expand Up @@ -1830,7 +1830,6 @@ def relative_interior(self):
2-d cone in 2-d lattice N
sage: K2.relative_interior() is K2
True
"""
if self.is_relatively_open():
return self
Expand Down Expand Up @@ -4730,7 +4729,6 @@ def lineality(self):
return self.linear_subspace().dimension()

def is_relatively_open(self):

r"""
Return whether ``self`` is relatively open.
Expand All @@ -4748,7 +4746,6 @@ def is_relatively_open(self):
1-d cone in 2-d lattice N
sage: K1.is_relatively_open()
True
"""
return self.lineality() == self.dim()

Expand Down
7 changes: 1 addition & 6 deletions src/sage/geometry/relative_interior.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@

from sage.structure.sage_object import SageObject

class RelativeInterior(SageObject):

class RelativeInterior(SageObject):
r"""
The relative interior of a polyhedron or cone
Expand All @@ -34,7 +34,6 @@ class RelativeInterior(SageObject):
sage: octant = Cone([(1,0,0), (0,1,0), (0,0,1)])
sage: octant.relative_interior()
Relative interior of 3-d cone in 3-d lattice N
"""

def __init__(self, polyhedron):
Expand All @@ -51,7 +50,6 @@ def __init__(self, polyhedron):
sage: P = Polyhedron()
sage: from sage.geometry.relative_interior import RelativeInterior
sage: TestSuite(RelativeInterior(P)).run()
"""
self._polyhedron = polyhedron

Expand Down Expand Up @@ -121,7 +119,6 @@ def closure(self):
a 1-dimensional polyhedron in ZZ^2 defined as the convex hull of 2 vertices
sage: ri_segment.closure() is segment
True
"""
return self._polyhedron

Expand Down Expand Up @@ -169,7 +166,6 @@ def __eq__(self, other):
sage: empty = Polyhedron(ambient_dim=2)
sage: ri_segment == empty
False
"""
if type(self) != type(other):
return False
Expand All @@ -195,6 +191,5 @@ def __ne__(self, other):
a 1-dimensional polyhedron in AA^2 defined as the convex hull of 2 vertices
sage: ri_segment != ri_segment2
False
"""
return not (self == other)

0 comments on commit fa4c2d2

Please sign in to comment.