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
add Carlo Hamalainen's latin square stuff to Sage #1707
Comments
comment:3
I'm willing to review this but since the patch was created 2 months ago(?), I am not sure what version of SAGe to apply it against. Looks very interesting. |
comment:4
I've looked at this more. This is not a patch at all but simply some SAGE code. A lot of this seems like good code but a lot is missing for this to be acceptable for inclusion in SAGE - missing docstrings and doctests, and I think some functions should be methods for a (yet to be created and designed) LatinSquare class. |
Dancing links C++ |
Attachment: dancing_links.cpp.gz Attachment: dancing_links.spyx.gz Dancing links C++ wrapper |
Updated latin squares code (lots of doctests), replaces latin.sage |
comment:5
Attachment: latin.2.sage.gz
|
comment:6
Hi, I have deleted latin.sage and dfs_latin.spyx. As David did state earlier we now need to rename the files, add them to the build systems, add imports and finally turn this into a patch. Then hopefully somebody will review this quickly. Anybody around who wants to help Carlo out? Cheers, Michael |
comment:7
I can try to help in the beginning. However, I've forgotten how to add a new directory to the devel tree. Do you use hg_sage.add as well? |
comment:8
Replying to @wdjoyner:
To the Sage repo? Just add it and add the new file to the repo. Somebody should add this to the development manual in case it isn't in there yet, i.e. "How do I add my code to the tree in case it is all new". Cheers, Michael |
Attachment: trac1707-combinat-matrices.patch.gz patch against 2.11.alpha1, needs review |
comment:10
This applies cleanly, but not not build without an addition to setup.py (in the top directory), since it adds a subdirectory "matrices" to combinat. With this change, it passes sage -testall, except for the plot.py failure (which has nothing to do with this patch). I give this a positive review but leave some food for thought: In my opinion, at some point, possibly in a future version, some very minor changes to the docstring are worth considering:
|
comment:11
Hello, I'll post a more in-depth review in awhile, but one thing that needs to be done is to make it so that doctests pass.
--Mike |
comment:12
Attachment: 1707-referee.patch.gz Apply the last two patches: trac1707-combinat-matrices.patch and 1707-referee.patch |
comment:13
Merged trac1707-combinat-matrices.patch and 1707-referee.patch in Sage 2.11.alpha2 |
set file to C++ in pbuild |
Attachment: trac_1707_pbuild.patch.gz Attachment: trac_1707-dancing_links.pyx-doctestfix.patch.gz |
comment:14
Merged trac_1707_pbuild.patch and trac_1707-dancing_links.pyx-doctestfix.patch in Sage 2.11.alpha2 Cheers, Michael |
CC: @sagetrac-sage-combinat
Component: combinatorics
Issue created by migration from https://trac.sagemath.org/ticket/1707
The text was updated successfully, but these errors were encountered: