]> gitweb.michael.orlitzky.com - sage.d.git/commitdiff
eja: use V.gen(i) instead of V.basis()[i] in a few places.
authorMichael Orlitzky <michael@orlitzky.com>
Mon, 5 Aug 2019 14:27:47 +0000 (10:27 -0400)
committerMichael Orlitzky <michael@orlitzky.com>
Mon, 5 Aug 2019 14:27:47 +0000 (10:27 -0400)
mjo/eja/eja_algebra.py

index a7bccc3f400899e90837911a6b5683f70e71a35c..388b7ff3e3c6e6f76c3e8bf0e044720d50e14ac2 100644 (file)
@@ -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]