Hi Vincent, I think the following works:
sage: F = CombinatorialFreeModule(ZZ,("a","b")) sage: F.basis().keys() {'a', 'b'} sage: r = PermutationGroupElement("(1,2)(3,4)") sage: u = PermutationGroupElement("(1,3)(2,4)") sage: G = PermutationGroup([r,u]) sage: G.algebra(ZZ).basis().keys() Permutation Group with generators [(1,2)(3,4), (1,3)(2,4)] sage: G.algebra(ZZ).basis().keys().gens() [(1,2)(3,4), (1,3)(2,4)] Best, Anne On 12/12/10 4:12 AM, Vincent Delecroix wrote:
Hello, I would like to use CombinatorialFreeModule and other combinatorial modules like group algebra. But there is always the same error when calling .gens() (and the traceback is not so useful for explaining me what should I do)... how do we use these objects ? Thanks Vincent sage: F=CombinatorialFreeModule(ZZ,("a","b")) sage: F Free module generated by {'a', 'b'} over Integer Ring sage: F.gens() RuntimeError Traceback (most recent call last) ... RuntimeError: Free module generated by {'a', 'b'} over Integer Ring still using old coercion framework sage: r = PermutationGroupElement("(1,2)(3,4)") sage: u = PermutationGroupElement("(1,3)(2,4)") sage: G = PermutationGroup([r,u]) sage: G.algebra(ZZ).gens() RuntimeError Traceback (most recent call last) ... RuntimeError: Group algebra of Permutation Group with generators [(1,2)(3,4), (1,3)(2,4)] over Integer Ring still using old coercion framework
-- 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.