]> gitweb.michael.orlitzky.com - sage.d.git/commitdiff
eja: actually do what the previous commit was supposed to do.
authorMichael Orlitzky <michael@orlitzky.com>
Thu, 26 Nov 2020 23:06:19 +0000 (18:06 -0500)
committerMichael Orlitzky <michael@orlitzky.com>
Thu, 26 Nov 2020 23:06:19 +0000 (18:06 -0500)
mjo/eja/eja_algebra.py

index c8a50f0893d97340e6cc450a2d1c9d3b47e1fe15..adcf75503d2a55add4c32dc56380396abd1f8d9d 100644 (file)
@@ -139,7 +139,7 @@ class FiniteDimensionalEuclideanJordanAlgebra(CombinatorialFreeModule):
                                        for j in range(n) ]
         # take advantage of symmetry
         for i in range(n):
-            for j in range(n):
+            for j in range(i+1):
                 elt = self.from_vector(mult_table[i][j])
                 self._multiplication_table[i][j] = elt
                 self._multiplication_table[j][i] = elt