-
-
Notifications
You must be signed in to change notification settings - Fork 481
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Addition on CombinatorialFreeModule directly on dictionaries #9651
Comments
comment:1
Attachment: trac_9651_CombinatorialFreeModule_Addition.patch.gz The patch still needs some doctesting (I have not yet done much, but will do more these days) - in particular, I modified CombinatorialFreeModule._apply_module_morphism and .apply_module_endomorphism. The first method is used in the code for symmetric functions: powersum.py, sfa.py and macdonald.py. Would be nice if someone could check if everything there still works well. Thx, Christian |
comment:2
The patch doesn't apply cleanly to sage-4.5.3.rc0. Applying #9648 first doesn't help. |
comment:3
The revised patch trac_9651_CombinatorialFreeModule_Addition-cs.patch But I haven't been able to confirm that it is a speedup. The results http://groups.google.com/group/sage-combinat-devel/msg/4869cc885ca42bc1 |
includes referees suggestions |
Attachment: trac_9651_CombinatorialFreeModule_Addition-cs.3.patch.gz Attachment: trac_9651_CombinatorialFreeModule_Addition-cs.4.patch.gz includes more referees suggestions |
Reviewer: Daniel Bump |
This comment has been minimized.
This comment has been minimized.
comment:4
Positive review! There is a thread about this patch in sage-combinat-devel I tested this with sage-4.6.alpha3. After applying
all tests pass. I also confirmed that the test is a speedup. |
comment:6
Please remove * * * from the commit message |
comment:7
Attachment: trac_9651_CombinatorialFreeModule_Addition-cs.5.patch.gz Replying to @jdemeyer:
done! |
Merged: sage-4.6.1.alpha0 |
At the moment, adding (and taking negative, substracting,...) for CombinatorialFreeModule is not done in a very efficient way.
This patch
provides a cythonized version of a pointwise addition of dictionaries, together with multiple options
uses this addition of dictionaries to provide fast methods for CombinatorialFreeModule
is (indirectly) based on the patch in Ticket New feature: ModulesWithBasis allows module_morphism's to a wider class of codomains #9648
======================================
prerequisite:
trac_9648_modulemorphism_codomain_extension.2.patch
apply that patch and
trac_9651_CombinatorialFreeModule_Addition-cs.4.patch,
which supercedes the previously posted patches on this page.
Component: combinatorics
Keywords: addition of dictionaries, CombinatorialFreeModule
Author: Christian Stump
Reviewer: Daniel Bump
Merged: sage-4.6.1.alpha0
Issue created by migration from https://trac.sagemath.org/ticket/9651
The text was updated successfully, but these errors were encountered: