-
-
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
Some fixes & improvements to autogenerated flint .pxd #37193
Conversation
mezzarobba
commented
Jan 30, 2024
- flint autogen: fields of a[rc]b_poly_struct
- flint autogen: remove two typedefs that don't exist in flint
- move fix from Fix build when linbox is build with fplll support #37064 to the flint interface generator
- flint autogen: add warnings about generated files to the templates
- regenerate flint wrappers
Interesting
|
The autogen scripts seem to be run manually, and the output files are committed to source. Thus, it doesn't make sense to ship these scripts with sage_setup, does it? |
Can't reproduce locally. |
Yes.
I think I agree. |
Rationale: accessing the coefficients of degree bewteen length and alloc of a polynomial is done via pol->coeffs, there is (afaik) no macro for that. And these fields are documented.
(it didn't seem worth the trouble modifying the generator itself so that it inserts the warning in the correct place...)
using flint commit 3e2c3a3e091106a25ca9c6fba28e02f2cbcd654a, which is a bit more recent than the flint version sage officially depends on but matches the API currently exposed in the generated files
bd29c6c
to
c179886
Compare
Documentation preview for this PR (built with commit c179886; changes) is ready! 🎉 |
sagemathgh-37193: Some fixes & improvements to autogenerated flint .pxd - flint autogen: fields of a[rc]b_poly_struct - flint autogen: remove two typedefs that don't exist in flint - move fix from sagemath#37064 to the flint interface generator - flint autogen: add warnings about generated files to the templates - regenerate flint wrappers URL: sagemath#37193 Reported by: Marc Mezzarobba Reviewer(s): Vincent Delecroix