From 3bbbc72d021c8c0328fbb504f036ef075dedd0f8 Mon Sep 17 00:00:00 2001 From: Michael Orlitzky Date: Thu, 25 Feb 2021 21:13:24 -0500 Subject: [PATCH] eja: pass associative=True in some tests. --- mjo/eja/eja_subalgebra.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/mjo/eja/eja_subalgebra.py b/mjo/eja/eja_subalgebra.py index 024903c..7ba8f79 100644 --- a/mjo/eja/eja_subalgebra.py +++ b/mjo/eja/eja_subalgebra.py @@ -110,11 +110,11 @@ class FiniteDimensionalEJASubalgebra(FiniteDimensionalEJA): ....: [0,0] ]) sage: E22 = matrix(AA, [ [0,0], ....: [0,1] ]) - sage: K1 = FiniteDimensionalEJASubalgebra(J, (J(E11),)) + sage: K1 = FiniteDimensionalEJASubalgebra(J, (J(E11),), associative=True) sage: K1.one().to_matrix() [1 0] [0 0] - sage: K2 = FiniteDimensionalEJASubalgebra(J, (J(E22),)) + sage: K2 = FiniteDimensionalEJASubalgebra(J, (J(E22),), associative=True) sage: K2.one().to_matrix() [0 0] [0 1] @@ -195,7 +195,10 @@ class FiniteDimensionalEJASubalgebra(FiniteDimensionalEJA): ....: [1,0,0] ]) sage: x = J(X) sage: basis = ( x, x^2 ) # x^2 is the identity matrix - sage: K = FiniteDimensionalEJASubalgebra(J, basis, orthonormalize=False) + sage: K = FiniteDimensionalEJASubalgebra(J, + ....: basis, + ....: associative=True, + ....: orthonormalize=False) sage: K(J.one()) f1 sage: K(J.one() + x) -- 2.44.2