Hello, I need to consider two (families of) simple operations on partitions that are not explicitely implemented in partition. They are split(pi, a) : (p1, ..., pi, ..., pk) -> (p1, ..., a, pi - a - 1, ..., pk) collapse(pi, pj) : (p1, ..., pi, ..., pj, ..., pk) -> (p1, ..., pi + pj - 1, ... pk)
(the -1 is essential for me but seems to be not natural because it changes the weight) For those two I would like to know if * there is yet something implemented for them; * you have encountered those operations in your life; * they have standard names; * they have to be implemented as methods of Partition or in a separate file in a specific directory. I use them for counting permutations in Rauzy class, but I think that they appear in other contexts. Take care, Vincent -- You received this message because you are subscribed to the Google Groups "sage-combinat-devel" group. To post to this group, send email to sage-combinat-de...@googlegroups.com. To unsubscribe from this group, send email to sage-combinat-devel+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/sage-combinat-devel?hl=en.