]> gitweb.michael.orlitzky.com - sage.d.git/blobdiff - mjo/eja/eja_subalgebra.py
eja: fix the natural representation in trivial subalgebras.
[sage.d.git] / mjo / eja / eja_subalgebra.py
index e39792a91732724b5fc7bc8b352e8fd977c80940..2318d12bfd0ebbfc765ca74766af9ab0e73ce02c 100644 (file)
@@ -313,6 +313,18 @@ class FiniteDimensionalEuclideanJordanElementSubalgebra(FiniteDimensionalEuclide
             return self.monomial(self.one_basis())
 
 
+    def natural_basis_space(self):
+        """
+        Return the natural basis space of this algebra, which is identical
+        to that of its superalgebra.
+
+        This is correct "by definition," and avoids a mismatch when the
+        subalgebra is trivial (with no natural basis to infer anything
+        from) and the parent is not.
+        """
+        return self.superalgebra().natural_basis_space()
+
+
     def superalgebra(self):
         """
         Return the superalgebra that this algebra was generated from.