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
Provide the enumeration of word morphisms from a range of integers #10134
Comments
Attachment: trac_10134_iter_morphisms-sl.patch.gz |
Author: Sébastien Labbé |
comment:2
Hi Sébastien! I took a look at your patch. It should be easy to review but I still have some comments:
I know my ideas aren't very clear, but maybe it could still inspire you into improving the docstring. I'll wait for your answer to resume the review. Note also that I get some doctest failures:
|
comment:3
OK. The parameter
I disagree on that. It is not C code, it is python. For example, it is OK to do :
The problems with many arguments like
I suggest : "The length of the list must be equal to the size of the alphabet, and the
I do not get those doctest failures. Did you rebuild your branch !? |
Applies over the precedent patch |
comment:4
Attachment: trac_10134-review-sl.patch.gz Needs review! |
Applies on top of the two other patches |
comment:5
Attachment: trac_10134_minor_fixes-abm.patch.gz I tested the two patches on sage-4.6 and all tests passed. The documentation looked fine, except for a typo I corrected in a review patch. I'm ready to set this ticket to positive review as soon as Sébastien acknowledge my review patch. |
comment:6
I aknowledge. |
Reviewer: Alexandre Blondin Massé |
Merged: sage-4.6.2.alpha0 |
The method
iter_morphisms
may iterate through all morphisms (infinite iterator) or through all morphisms having particular lengths for the image of each letter. Recently, I needed something in the middle, that is, a finite iterator that behaves like the infinite one. Thus, I added a new possible type for the argument (tuple) which specifies a range for the sum of the lengths of the images. Here is an example:Patch to be posted soon.
CC: @sagetrac-sage-combinat @sagetrac-abmasse
Component: combinatorics
Author: Sébastien Labbé
Reviewer: Alexandre Blondin Massé
Merged: sage-4.6.2.alpha0
Issue created by migration from https://trac.sagemath.org/ticket/10134
The text was updated successfully, but these errors were encountered: