Dear all,

I want to write a simple very special purpose class for tensor products of 
symmetric functions, but I cannot figure out how to do it.  In particular, 
I want that my element class is able to reuse the plethysm method 
from SymmetricFunctionAlgebra_generic_Element.plethysm.  For example,

sage: s = SymmetricFunctions(QQ).s() 
sage: x = tensor([s[1,1], s[2]])
sage: s[2](x)
s[1, 1, 1, 1] # s[2, 2] + s[1, 1, 1, 1] # s[4] + s[2, 1, 1] # s[3, 1] + 
s[2, 2] # s[2, 2] + s[2, 2] # s[4]
sage: f[2](x) 
-f[2, 2] # f[2, 2] - f[4] # f[2, 2]

should work also when x is an element from my class.

I hope that this is easy to do.  But it is not clear from which class my 
parent class should inherit from, whether to use __init__ or 
__classcall_private__ in the element class, etc...

Help (ideally, a skeleton class) is of course very much appreciated!

Martin

-- 
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To post to this group, send email to sage-devel@googlegroups.com.
Visit this group at https://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/d/optout.

Reply via email to