Add missing fmpz_mod_mpoly_compose_ functions #2068
Draft
+883
−3
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.
In some work on python-flint I noticed that the
fmpz_mod_mpoly_compose_fmpz_mod_mpoly_gens
function was documented, but unimplemented. I've looked through the git history appears it was never implemented, only added as a doc string.This PR adds that function and the other missing
fmpz_mod_mpoly_compose_horner
function. As well as a set of test cases for the compose functions.I've retained the copyright headers from the
fmpz_mpoly
andnmod_mpoly
related files as these new ones are largely a copy-paste + search-replace + minor edits.One test cases is commented out as I'm not sure why it isn't passing. I believe it's near identical to it's counter parts. Something is up with it. I'll marked the PR as draft until I can take a deeper look.
I'm not sure why these functions were not implemented previously. Perhaps just an oversight.