]> gitweb.michael.orlitzky.com - dunshire.git/blobdiff - src/dunshire/games.py
Get rid of the contains_strict() methods and compare against ABS_TOL.
[dunshire.git] / src / dunshire / games.py
index f3d8100665d88c3690d75605ed177988fef6f54e..4b5383dd2f12c1fe2d6de250760e5009639bfd5d 100644 (file)
@@ -319,10 +319,10 @@ class SymmetricLinearGame:
         # feeding it to CVXOPT.
         self._L = matrix(L, (K.dimension(), K.dimension())).trans()
 
-        if not K.contains_strict(self._e1):
+        if not self._e1 in K:
             raise ValueError('the point e1 must lie in the interior of K')
 
-        if not K.contains_strict(self._e2):
+        if not self._e2 in K:
             raise ValueError('the point e2 must lie in the interior of K')
 
     def __str__(self):