]> gitweb.michael.orlitzky.com - sage.d.git/commitdiff
eja: change matrix_space() to use parent().
authorMichael Orlitzky <michael@orlitzky.com>
Sun, 13 Dec 2020 22:45:16 +0000 (17:45 -0500)
committerMichael Orlitzky <michael@orlitzky.com>
Sun, 13 Dec 2020 22:45:16 +0000 (17:45 -0500)
This allows it to work when the "matrix basis" lives in a Cartesian
product space.

mjo/eja/eja_algebra.py

index db899dd984594bf8ef88cb0e44f3812d2e843996..ae41b8c6e12415d4b940958ca3798749a4e8c7bf 100644 (file)
@@ -737,7 +737,7 @@ class FiniteDimensionalEJA(CombinatorialFreeModule):
         if self.is_trivial():
             return MatrixSpace(self.base_ring(), 0)
         else:
-            return self._matrix_basis[0].matrix_space()
+            return self.matrix_basis()[0].parent()
 
 
     @cached_method