projects
/
linpy.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add helper function islhelper.isl_set_points()
[linpy.git]
/
pypol
/
polyhedra.py
diff --git
a/pypol/polyhedra.py
b/pypol/polyhedra.py
index
6b44bdc
..
7181565
100644
(file)
--- a/
pypol/polyhedra.py
+++ b/
pypol/polyhedra.py
@@
-84,7
+84,7
@@
class Polyhedron(Domain):
def polyhedral_hull(self):
return self
def polyhedral_hull(self):
return self
-
+
@classmethod
def _fromislbasicset(cls, islbset, symbols):
islconstraints = islhelper.isl_basic_set_constraints(islbset)
@classmethod
def _fromislbasicset(cls, islbset, symbols):
islconstraints = islhelper.isl_basic_set_constraints(islbset)
@@
-164,9
+164,9
@@
class Polyhedron(Domain):
else:
strings = []
for equality in self.equalities:
else:
strings = []
for equality in self.equalities:
- strings.append('
Eq({}, 0)
'.format(equality))
+ strings.append('
0 == {}
'.format(equality))
for inequality in self.inequalities:
for inequality in self.inequalities:
- strings.append('
Ge({}, 0)
'.format(inequality))
+ strings.append('
0 <= {}
'.format(inequality))
if len(strings) == 1:
return strings[0]
else:
if len(strings) == 1:
return strings[0]
else: