-
-
Notifications
You must be signed in to change notification settings - Fork 553
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
Adding height() and width() functions to square grid paths #8353
Comments
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
comment:3
Needs review ! |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
comment:6
I would suggest that the value be converted to RR before taking the max or min. You could add a comment explaining the reason of the conversion and that this bug is trac at a ticket number that you give. The description of this ticket is not really the good place to put your comment. You can put it in a comment of the ticket instead or on sage-devel. I asked the question on sage-devel : |
comment:7
Thanks for your comments ! I found an almost-clean solution for the problem raised by the triangular grid paths. Instead of computing directly the I'll upload another patch in a few minutes. Needs review ! |
New patch -- adds functions xmin(), xmax(), etc. |
comment:8
Attachment: trac_8353_square_grid_word_paths_height_width-abm.patch.gz |
Attachment: trac_8353_review-sl.patch.gz Applies over the precedent patch |
Author: Alexandre Blondin Massé |
comment:9
All tests passed in sage/combinat/words. Documentation builds fine. The issue discussed above is fixed. I am giving a positive review to Alex's changes. I added a small patch fixing some documentation. If Alexandre agrees with the changes I did, I allow him to change the status of the ticket to positive review. |
Reviewer: Sébastien Labbé |
comment:10
I agree with Sébastien's changes. I retested it just to make sure, and I looked at the documentation, which is still fine. I'll set this ticket to "positive review". |
Merged: sage-4.3.4.alpha1 |
When dealing with 2d word paths, it is very useful to know their height and their width.
In particular, one can compute a bounding box for a better displaying. The aim of this small ticket is to add those two functionalities.
By the way, while testing it, I noticed a strange behavior:
Shouldn't
1/2*sqrt3
be the highest element ? This doesn't make sense.CC: @seblabbe @sagetrac-sage-combinat
Component: combinatorics
Keywords: paths, height, width
Author: Alexandre Blondin Massé
Reviewer: Sébastien Labbé
Merged: sage-4.3.4.alpha1
Issue created by migration from https://trac.sagemath.org/ticket/8353
The text was updated successfully, but these errors were encountered: