]> gitweb.michael.orlitzky.com - sage.d.git/commitdiff
eja: add a comment about sub-subalgebra representations.
authorMichael Orlitzky <michael@orlitzky.com>
Sat, 21 Nov 2020 02:30:51 +0000 (21:30 -0500)
committerMichael Orlitzky <michael@orlitzky.com>
Sat, 21 Nov 2020 02:30:51 +0000 (21:30 -0500)
mjo/eja/eja_subalgebra.py

index 8f003739ac8e520d3fc43df567c24fbb46c316b6..85ada0705fe8073fa80500d4719c38a5ea16a576 100644 (file)
@@ -153,7 +153,11 @@ class FiniteDimensionalEuclideanJordanSubalgebra(FiniteDimensionalEuclideanJorda
         superalgebra_basis = [ self._superalgebra.from_vector(b)
                                for b in basis_vectors ]
 
+        # If our superalgebra is a subalgebra of something else, then
+        # these vectors won't have the right coordinates for
+        # V.span_of_basis() unless we use V.from_vector() on them.
         W = V.span_of_basis( V.from_vector(v) for v in basis_vectors )
+
         n = len(superalgebra_basis)
         mult_table = [[W.zero() for i in range(n)] for j in range(n)]
         for i in range(n):