Some fixes & improvements to autogenerated flint .pxd#37193
Merged
vbraun merged 5 commits intosagemath:developfrom Feb 13, 2024
Merged
Some fixes & improvements to autogenerated flint .pxd#37193vbraun merged 5 commits intosagemath:developfrom
vbraun merged 5 commits intosagemath:developfrom
Conversation
Member
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
videlec
approved these changes
Jan 30, 2024
Contributor
|
Interesting |
Member
|
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? |
Member
Author
Can't reproduce locally. |
Member
Author
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! 🎉 |
Member
Author
vbraun
pushed a commit
to vbraun/sage
that referenced
this pull request
Feb 7, 2024
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
2 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.