projects
/
linpy.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Make coordinates mandatory in Point constructor
[linpy.git]
/
pypol
/
domains.py
diff --git
a/pypol/domains.py
b/pypol/domains.py
index
3ab7d44
..
255c995
100644
(file)
--- a/
pypol/domains.py
+++ b/
pypol/domains.py
@@
-312,6
+312,12
@@
class Domain:
points.append(Point(coordinates))
return points
points.append(Point(coordinates))
return points
+ def __contains__(self, point):
+ for polyhedron in self.polyhedra:
+ if point in polyhedron:
+ return True
+ return False
+
def subs(self, symbol, expression=None):
polyhedra = [polyhedron.subs(symbol, expression)
for polyhedron in self.polyhedra]
def subs(self, symbol, expression=None):
polyhedra = [polyhedron.subs(symbol, expression)
for polyhedron in self.polyhedra]