]> gitweb.michael.orlitzky.com - dunshire.git/commitdiff
Remove a superfluous transpose.
authorMichael Orlitzky <michael@orlitzky.com>
Tue, 6 Dec 2016 16:26:49 +0000 (11:26 -0500)
committerMichael Orlitzky <michael@orlitzky.com>
Tue, 6 Dec 2016 16:26:49 +0000 (11:26 -0500)
test/symmetric_linear_game_test.py

index 0f94305e1892a97f2a6dd8dc8afb582702bd2fd1..cf305f0ae133699a1be00a3dce8c27c72c9f2a7c 100644 (file)
@@ -235,13 +235,9 @@ class SymmetricLinearGameTest(TestCase): # pylint: disable=R0904
         value that is the negation of the original game. Comes from
         some corollary.
         """
-        # This is the "correct" representation of ``M``, but
-        # COLUMN indexed...
-        M = -G.L().trans()
-
-        # so we have to transpose it when we feed it to the constructor.
+        # Since L is a CVXOPT matrix, it will be transposed automatically.
         # Note: the condition number of ``H`` should be comparable to ``G``.
-        H = SymmetricLinearGame(M.trans(), G.K(), G.e2(), G.e1())
+        H = SymmetricLinearGame(-G.L(), G.K(), G.e2(), G.e1())
 
         soln1 = G.solution()
         x_bar = soln1.player1_optimal()