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,
# 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]