From e72bc3419ce37cfd1996bce4d1bcdf88aa29079c Mon Sep 17 00:00:00 2001 From: Michael Orlitzky Date: Thu, 28 Nov 2024 08:53:29 -0500 Subject: [PATCH] mjo/matrix_algebra.py: move a comment --- mjo/matrix_algebra.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/mjo/matrix_algebra.py b/mjo/matrix_algebra.py index d12e7b3..43beb01 100644 --- a/mjo/matrix_algebra.py +++ b/mjo/matrix_algebra.py @@ -208,11 +208,6 @@ class MatrixAlgebra(CombinatorialFreeModule): category = category.Associative() self._nrows = n - - # Since the scalar ring is (say) real but the entries are not, - # sticking a "1" in each position doesn't give us a basis for - # the space. We actually need to stick each of e0, e1, ... (a - # basis for the entry algebra itself) into each position. self._entry_algebra = entry_algebra # Needs to make the (overridden) method call when, for example, @@ -220,6 +215,10 @@ class MatrixAlgebra(CombinatorialFreeModule): # lies to us. entry_basis = self.entry_algebra_gens() + # Since the scalar ring is (say) real but the entries are not, + # sticking a "1" in each position doesn't give us a basis for + # the space. We actually need to stick each of e0, e1, ... (a + # basis for the entry algebra itself) into each position. basis_indices = [(i,j,e) for i in range(n) for j in range(n) for e in entry_basis] -- 2.49.0