[sage-combinat-devel] On the new base_ring check in ModuleMorphismByLinearity in version 4.5

2010-07-28 Thread Christian Stump
Salut, in the new sage version, there is now a base_ring equality check when a ModuleMorphismByLinearity is initiated. This prevents me from defining a linear map from a CombinatorialFreeModule to RR or CC using module_morphism. I cannot solve it using CombinatorialFreeModule.base_extend as this i

[sage-combinat-devel] Re: Adding dictionaries pointwise using cython

2010-07-28 Thread Christian Stump
Dear Vincent, > I think that this kind of question is more dedicated to sage-support > because it does not deal about combinatorics > (http://groups.google.com/group/sage-support) Thanks for your reply; I sent it as well to combinatorics, as (even though I didn't mention it) my goal is to provide

Re: [sage-combinat-devel] Adding dictionaries pointwise using cython

2010-07-28 Thread Vincent Delecroix
I think that this kind of question is more dedicated to sage-support because it does not deal about combinatorics (http://groups.google.com/group/sage-support) 2010/7/28 Christian Stump : > Salut cython specialists, > > I would like to implement a routine adding dictionaries with possibly > differ

[sage-combinat-devel] Adding dictionaries pointwise using cython

2010-07-28 Thread Christian Stump
Salut cython specialists, I would like to implement a routine adding dictionaries with possibly different keys pointwise and delete all zero entries in the end: sage: def dict_sum( list_of_dics, remove_zeros=True ): ... return_dict = {} ... for D in list_of_dics: ... for key