[sage-combinat-devel] coercion framework

2010-12-12 Thread Vincent Delecroix
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:

Re: [sage-combinat-devel] coercion framework

2010-12-12 Thread Anne Schilling
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