File tree Expand file tree Collapse file tree 1 file changed +9
-7
lines changed Expand file tree Collapse file tree 1 file changed +9
-7
lines changed Original file line number Diff line number Diff line change @@ -2879,13 +2879,15 @@ def raise_c(n):
2879
2879
return lambda c : c .subs (** {str (g ): g ** n for g in degree_one })
2880
2880
2881
2881
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 )
2889
2891
2890
2892
# Takes in n, and returns a function which takes in a partition and
2891
2893
# scales all of the parts of that partition by n
You can’t perform that action at this time.
0 commit comments