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

Commit

Permalink
trivial inequality
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonathan Kliem committed Jun 19, 2020
1 parent e055bc7 commit 7eba64d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/sage/geometry/polyhedron/backend_cdd.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,8 +110,8 @@ def _init_from_Hrepresentation(self, ieqs, eqns, verbose=False):
convex hull of 1 vertex and 1 ray
"""
from .cdd_file_format import cdd_Hrepresentation
# We have to add a trivial equation, in case the polyhedron is the universe.
eqns = tuple(eqns) + ((1,) + tuple(0 for _ in range(self.ambient_dim())),)
# We have to add a trivial inequality, in case the polyhedron is the universe.
ieqs = tuple(ieqs) + ((1,) + tuple(0 for _ in range(self.ambient_dim())),)
s = cdd_Hrepresentation(self._cdd_type, ieqs, eqns)
s = self._run_cdd(s, '--redcheck', verbose=verbose)
s = self._run_cdd(s, '--repall', verbose=verbose)
Expand Down

0 comments on commit 7eba64d

Please sign in to comment.