From: Michael Orlitzky Date: Wed, 9 Dec 2020 02:04:00 +0000 (-0500) Subject: eja: simplify two random statements. X-Git-Url: https://gitweb.michael.orlitzky.com/?a=commitdiff_plain;h=e3430c0ab1408e6523303d28944338253d005b61;p=sage.d.git eja: simplify two random statements. --- diff --git a/mjo/eja/eja_algebra.py b/mjo/eja/eja_algebra.py index 5910221..5deb5c9 100644 --- a/mjo/eja/eja_algebra.py +++ b/mjo/eja/eja_algebra.py @@ -1721,9 +1721,10 @@ class ComplexMatrixEJA(MatrixEJA): blocks = [] for z in M.list(): - a = z.list()[0] # real part, I guess - b = z.list()[1] # imag part, I guess - blocks.append(matrix(field, 2, [[a,b],[-b,a]])) + a = z.real() + b = z.imag() + blocks.append(matrix(field, 2, [ [ a, b], + [-b, a] ])) return matrix.block(field, n, blocks)