]> gitweb.michael.orlitzky.com - dunshire.git/commitdiff
Make the SymmetricLinearGame.condition() method public.
authorMichael Orlitzky <michael@orlitzky.com>
Tue, 1 Nov 2016 17:14:50 +0000 (13:14 -0400)
committerMichael Orlitzky <michael@orlitzky.com>
Tue, 1 Nov 2016 17:14:50 +0000 (13:14 -0400)
dunshire/games.py

index 4451606c42c27d4e02d4cdfc30c469a1756d99e5..e25db28a8e7349e88b9bdd18f16d0eea0b5c03c1 100644 (file)
@@ -346,7 +346,7 @@ class SymmetricLinearGame:
                           str(self._K),
                           indented_e1,
                           indented_e2,
-                          self._condition())
+                          self.condition())
 
 
     def _zero(self):
@@ -519,7 +519,7 @@ class SymmetricLinearGame:
         return Solution(p1_value, p1_optimal, p2_optimal)
 
 
-    def _condition(self):
+    def condition(self):
         r"""
         Return the condition number of this game.
 
@@ -547,7 +547,7 @@ class SymmetricLinearGame:
         >>> e1 = [1]
         >>> e2 = e1
         >>> SLG = SymmetricLinearGame(L, K, e1, e2)
-        >>> actual = SLG._condition()
+        >>> actual = SLG.condition()
         >>> expected = 1.8090169943749477
         >>> abs(actual - expected) < options.ABS_TOL
         True