From e3430c0ab1408e6523303d28944338253d005b61 Mon Sep 17 00:00:00 2001 From: Michael Orlitzky Date: Tue, 8 Dec 2020 21:04:00 -0500 Subject: [PATCH] eja: simplify two random statements. --- mjo/eja/eja_algebra.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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) -- 2.44.2