Skip to content
This repository has been archived by the owner on Jan 30, 2023. It is now read-only.

Commit

Permalink
Fix to product_space() for when L is not a true subalgebra of A.
Browse files Browse the repository at this point in the history
  • Loading branch information
Travis Scrimshaw committed Aug 20, 2018
1 parent 9b6c1fe commit 158bfdb
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -663,8 +663,13 @@ def product_space(self, L, submodule=False):
except AttributeError:
A = self

if L not in self.category():
# L might be a submodule of A.module()
LB = [self.from_vector(b) for b in L.basis()]
else:
LB = L.basis()

B = self.basis()
LB = L.basis()
b_mat = matrix(A.base_ring(), [A.bracket(b, lb).to_vector()
for b in B for lb in LB])
if submodule is True or not (self.is_ideal(A) and L.is_ideal(A)):
Expand Down

0 comments on commit 158bfdb

Please sign in to comment.