From: Michael Orlitzky Date: Tue, 6 Dec 2016 16:26:49 +0000 (-0500) Subject: Remove a superfluous transpose. X-Git-Tag: 0.1.2~19 X-Git-Url: https://gitweb.michael.orlitzky.com/?p=dunshire.git;a=commitdiff_plain;h=dd58b25641f37f52b7327b1b779a606c33e230eb Remove a superfluous transpose. --- 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()