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

Commit

Permalink
fix universe from Hrep for cdd
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonathan Kliem committed Jun 19, 2020
1 parent e2dcdee commit e41d698
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/sage/geometry/polyhedron/backend_cdd.py
Expand Up @@ -110,6 +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())),)
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 e41d698

Please sign in to comment.