From: Michael Orlitzky Date: Sun, 13 Dec 2020 22:45:16 +0000 (-0500) Subject: eja: change matrix_space() to use parent(). X-Git-Url: https://gitweb.michael.orlitzky.com/?a=commitdiff_plain;h=e05c37cc70d3ca1a3df761d92e46e93490716063;p=sage.d.git eja: change matrix_space() to use parent(). This allows it to work when the "matrix basis" lives in a Cartesian product space. --- diff --git a/mjo/eja/eja_algebra.py b/mjo/eja/eja_algebra.py index db899dd..ae41b8c 100644 --- a/mjo/eja/eja_algebra.py +++ b/mjo/eja/eja_algebra.py @@ -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