projects
/
linpy.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
1044e58
)
Polyhedron() constructor can return Empty or Universe
1.0.2
author
Vivien Maisonneuve
<v.maisonneuve@gmail.com>
Tue, 9 Sep 2014 09:13:23 +0000
(11:13 +0200)
committer
Vivien Maisonneuve
<v.maisonneuve@gmail.com>
Tue, 9 Sep 2014 09:13:23 +0000
(11:13 +0200)
linpy/polyhedra.py
patch
|
blob
|
history
diff --git
a/linpy/polyhedra.py
b/linpy/polyhedra.py
index
ead9b83
..
820b014
100644
(file)
--- a/
linpy/polyhedra.py
+++ b/
linpy/polyhedra.py
@@
-222,6
+222,10
@@
class Polyhedron(Domain):
@classmethod
def _fromislbasicset(cls, islbset, symbols):
@classmethod
def _fromislbasicset(cls, islbset, symbols):
+ if bool(libisl.isl_basic_set_is_empty(islbset)):
+ return Empty
+ if bool(libisl.isl_basic_set_is_universe(islbset)):
+ return Universe
islconstraints = islhelper.isl_basic_set_constraints(islbset)
equalities = []
inequalities = []
islconstraints = islhelper.isl_basic_set_constraints(islbset)
equalities = []
inequalities = []