Skip to content

Commit 9280ad9

Browse files
committed
make plethysm with tensor return result as element of second parent
1 parent 165d450 commit 9280ad9

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

src/sage/combinat/sf/sfa.py

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2879,13 +2879,15 @@ def raise_c(n):
28792879
return lambda c: c.subs(**{str(g): g ** n for g in degree_one})
28802880

28812881
if tensorflag:
2882-
tparents = x.parent()._sets
2883-
return tensor([parent]*len(tparents))(sum(d*prod(sum(raise_c(r)(c)
2884-
* tensor([p[r].plethysm(base(la))
2885-
for (base,la) in zip(tparents,trm)])
2886-
for (trm,c) in x)
2887-
for r in mu)
2888-
for (mu, d) in p(self)))
2882+
parent = x.parent()
2883+
tparents = parent._sets
2884+
elt = sum(d*prod(sum(raise_c(r)(c)
2885+
* tensor([p[r].plethysm(base(la))
2886+
for (base,la) in zip(tparents, trm)])
2887+
for (trm, c) in x)
2888+
for r in mu)
2889+
for (mu, d) in p(self))
2890+
return parent(elt)
28892891

28902892
# Takes in n, and returns a function which takes in a partition and
28912893
# scales all of the parts of that partition by n

0 commit comments

Comments
 (0)