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
Exhaust over Weil polynomials #23946
Comments
comment:1
Status update: I've pushed many recent changes to the branch
Some to-do items: check that all my old test scripts still work; write more tests; add more documentation; add more input sanitization. In the meantime, I'd appreciate some feedback about where this might belong in Sage. |
Dependencies: #24016 |
comment:2
Replying to @kedlaya:
First of all, your github repo contains both C code and There are two possibilities, each with its advantages and disadvantages: (A) Make it an external (presumably optional) package and interface it from Sage. (B) Make it actually a part of Sage itself. Advantages of (A) are that you keep control of the package: you can easily change the package at will (with (B) every change would need to go through the Sage Trac) and you don't need to care about Sage coding standards. Also important: with (A) your package could be used without Sage. With (B), there might be more initial work needed to get it into Sage but then it might be less work to maintain. |
comment:3
I just merged a pull request in from another branch, which has the effect of significantly reconfiguring the file structure. In particular, there are no longer any The main code base now consists of two |
comment:4
I think that the code is stable enough that we should just add it to Sage. Maybe create a folder |
comment:5
Replying to @roed314:
Do you mean put everything in there? Or put the Cython in Also, if someone can point me to some guidance about a module to the Sage library (e.g., how to format |
comment:6
Replying to @kedlaya:
I meant putting everything in there. We should also talk about the best way for a user to access these methods; perhaps a method
See http://doc.sagemath.org/html/en/developer/coding_basics.html#files-and-directory-structure for some details. You'll also need to add lines to |
Commit: |
Changed branch from u/kedlaya/exhaust_over_weil_polynomials to none |
Changed commit from |
Branch: u/kedlaya/weilpoly_search |
Commit: |
comment:13
does not work for me:
and there are missing empty lines in the doc after lines ending with |
comment:14
That is the code looking for OpenMP (which is optional, since we don't ship it with Sage). Does it help if you take out the compiler directive in line 2 of The docstrings need a fair bit of work to get to 100% doctest coverage, let alone proper formatting. I can of course work on that independently. |
comment:15
yes, removing the distutils directive make it work |
comment:17
In addition to suppressing OpenMP, I also added doctests to get to 100% coverage. Cc'ing roed, who is somewhat familiar to the code. |
comment:18
please remove the "next" method. and in the test of |
comment:39
On Python 2 there are various errors of the form
|
Branch pushed to git repo; I updated commit sha1. New commits:
|
comment:42
Replying to @vbraun:
I was asked to remove that method (see comment:18), but anyway here it is again. |
Branch pushed to git repo; I updated commit sha1. New commits:
|
comment:44
Looking at the patchbot logs, it seems that at least one of the bots failed to build because of nested function declarations in the C code. I thought we were always compiling the Sage library with gcc, which supports nested functions even though they are not in the ANSI standard...? |
comment:45
on osx we now use clang by default |
Branch pushed to git repo; I updated commit sha1. New commits:
|
comment:47
Ah, it seems clang does not (yet) support nested functions as in GNU C. So I redid that bit of the C code; let's see what the patchbots have to say now. |
comment:48
Some of the patchbots are set up strangely, but I'm not seeing any systemic issues with this branch. |
comment:49
I agree. We have successful tests run on Darwin, so I'm setting this back to positive review. |
Changed branch from u/kedlaya/weilpoly_search to |
I have reasonably stable code (mostly in C, depending on FLINT) for exhausting over Weil polynomials:
https://github.com/kedlaya/root-unitary
The goal of this ticket is to incorporate this code into Sage in some fashion.
Depends on #24016
CC: @roed314
Component: number theory
Keywords: Weil polynomials, sd91
Author: Kiran Kedlaya
Branch/Commit:
e02ae3c
Reviewer: David Roe
Issue created by migration from https://trac.sagemath.org/ticket/23946
The text was updated successfully, but these errors were encountered: