From 120a0fdb88c5e41b07c23715b928c72c07c4e2ce Mon Sep 17 00:00:00 2001 From: Michael Orlitzky Date: Mon, 5 Aug 2019 10:27:47 -0400 Subject: [PATCH] eja: use V.gen(i) instead of V.basis()[i] in a few places. --- mjo/eja/eja_algebra.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mjo/eja/eja_algebra.py b/mjo/eja/eja_algebra.py index a7bccc3..388b7ff 100644 --- a/mjo/eja/eja_algebra.py +++ b/mjo/eja/eja_algebra.py @@ -641,7 +641,7 @@ class RealCartesianProductEJA(FiniteDimensionalEuclideanJordanAlgebra): """ def __init__(self, n, field=QQ): V = VectorSpace(field, n) - mult_table = [ [ V.basis()[i]*(i == j) for j in range(n) ] + mult_table = [ [ V.gen(i)*(i == j) for j in range(n) ] for i in range(n) ] fdeja = super(RealCartesianProductEJA, self) @@ -1298,8 +1298,8 @@ class JordanSpinEJA(FiniteDimensionalEuclideanJordanAlgebra): mult_table = [[V.zero() for j in range(n)] for i in range(n)] for i in range(n): for j in range(n): - x = V.basis()[i] - y = V.basis()[j] + x = V.gen(i) + y = V.gen(j) x0 = x[0] xbar = x[1:] y0 = y[0] -- 2.43.2