From a46ed57c4d013b9b2509639849a6ba62d7713f8f Mon Sep 17 00:00:00 2001 From: Michael Orlitzky Date: Thu, 29 Aug 2019 11:30:02 -0400 Subject: [PATCH] eja: fix some tests that broke with the gram-schmidt commit. --- mjo/eja/eja_subalgebra.py | 4 ++-- mjo/eja/eja_utils.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/mjo/eja/eja_subalgebra.py b/mjo/eja/eja_subalgebra.py index fee718b..9326793 100644 --- a/mjo/eja/eja_subalgebra.py +++ b/mjo/eja/eja_subalgebra.py @@ -241,7 +241,7 @@ class FiniteDimensionalEuclideanJordanElementSubalgebra(FiniteDimensionalEuclide sage: J = RealSymmetricEJA(3) sage: x = sum( i*J.gens()[i] for i in range(6) ) - sage: K = FiniteDimensionalEuclideanJordanElementSubalgebra(x) + sage: K = FiniteDimensionalEuclideanJordanElementSubalgebra(x,False) sage: [ K(x^k) for k in range(J.rank()) ] [f0, f1, f2] @@ -348,7 +348,7 @@ class FiniteDimensionalEuclideanJordanElementSubalgebra(FiniteDimensionalEuclide sage: J = RealSymmetricEJA(3) sage: x = J.monomial(0) + 2*J.monomial(2) + 5*J.monomial(5) - sage: K = FiniteDimensionalEuclideanJordanElementSubalgebra(x) + sage: K = FiniteDimensionalEuclideanJordanElementSubalgebra(x,False) sage: K.vector_space() Vector space of degree 6 and dimension 3 over... User basis matrix: diff --git a/mjo/eja/eja_utils.py b/mjo/eja/eja_utils.py index 8f2d8f3..d486b4c 100644 --- a/mjo/eja/eja_utils.py +++ b/mjo/eja/eja_utils.py @@ -24,7 +24,7 @@ def gram_schmidt(v): sage: v3 = vector(QQ,(2,1,-1)) sage: v = [v1,v2,v3] sage: u = gram_schmidt(v) - sage: [ u_i.inner_product(u_i).sqrt() == 1 for u_i in u ] + sage: all( u_i.inner_product(u_i).sqrt() == 1 for u_i in u ) True sage: u[0].inner_product(u[1]) == 0 True -- 2.44.2