X-Git-Url: https://svn.cri.ensmp.fr/git/linpy.git/blobdiff_plain/1d494bb187b70135df721c13306d7f26fdf33f50..5fa0e7932a1621bee505991475291e43225a4b49:/pypol/domains.py diff --git a/pypol/domains.py b/pypol/domains.py index fd588b7..a34b75b 100644 --- a/pypol/domains.py +++ b/pypol/domains.py @@ -81,6 +81,12 @@ class Domain: libisl.isl_set_free(islset) return universe + def isbounded(self): + islset = self._toislset(self.polyhedra, self.symbols) + bounded = bool(libisl.isl_set_is_bounded(islset)) + libisl.isl_set_free(islset) + return bounded + def __eq__(self, other): symbols = self._xsymbols([self, other]) islset1 = self._toislset(self.polyhedra, symbols)