From dd58b25641f37f52b7327b1b779a606c33e230eb Mon Sep 17 00:00:00 2001 From: Michael Orlitzky Date: Tue, 6 Dec 2016 11:26:49 -0500 Subject: [PATCH] Remove a superfluous transpose. --- test/symmetric_linear_game_test.py | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/test/symmetric_linear_game_test.py b/test/symmetric_linear_game_test.py index 0f94305..cf305f0 100644 --- a/test/symmetric_linear_game_test.py +++ b/test/symmetric_linear_game_test.py @@ -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() -- 2.44.2