X-Git-Url: https://svn.cri.ensmp.fr/git/linpy.git/blobdiff_plain/9de8ee74599e94260da37ce8349ac04cc3ae89c3..17f12d8f63d696f09dbb44be3dc24b9aba7b88d3:/pypol/domains.py diff --git a/pypol/domains.py b/pypol/domains.py index fdb0ab0..2fbd544 100644 --- a/pypol/domains.py +++ b/pypol/domains.py @@ -301,6 +301,11 @@ class Domain: points.append(point) return points + def subs(self, symbol, expression=None): + polyhedra = [polyhedron.subs(symbol, expression) + for polyhedron in self.polyhedra] + return Domain(*polyhedra) + @classmethod def _fromislset(cls, islset, symbols): from .polyhedra import Polyhedron @@ -323,6 +328,7 @@ class Domain: self._dimension = len(self._symbols) return self + @classmethod def _toislset(cls, polyhedra, symbols): polyhedron = polyhedra[0] islbset = polyhedron._toislbasicset(polyhedron.equalities,