-
Notifications
You must be signed in to change notification settings - Fork 33
Add mpoly docs, functions for discriminant, resultant, term_content, and deflation, and run mod_mpoly doctests. #216
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
Merged
Merged
Changes from all commits
Commits
Show all changes
28 commits
Select commit
Hold shift + click to select a range
91f498f
Run mod_mpoly and vec doc tests, sort module imports
e84d0e9
Add mpoly discriminant, resultant, term_content, and deflation
67e7aa5
Deflation docs
Jake-Moss 86254f2
Add mpoly docs, clean up verbatim text
Jake-Moss f07bdc9
Add tests
Jake-Moss ac4c3e4
Add content method for fmpz_mpoly and fmpz_poly
Jake-Moss a5f4d2c
Add missing truediv_scalar methods to fmpz_mpoly and fmpq_mpoly
Jake-Moss 9e7bcb5
Remove to_tuple, replace with __iter__ generator
Jake-Moss 3db235b
Improve primitive function for fmpz_mpoly
Jake-Moss 6d3c5de
Linting
Jake-Moss 46d39cf
Rework fmpz_[m]poly inflation and deflation, wip
Jake-Moss 206d7b0
POC doctest discovery
Jake-Moss 2f9c24f
Add term helper method
Jake-Moss 662e06d
New deflation functions
Jake-Moss 9c06381
Integrate doctests with pytest
Jake-Moss 9dc4f4c
Don't say "Failed:" twice
Jake-Moss 170f212
Add invariant tests and correct doc strings
Jake-Moss 6b6ca2c
Merge remote-tracking branch 'origin/main'
Jake-Moss e001635
Conditionally define the pytest doctest target
Jake-Moss f99158d
fixup! Conditionally define the pytest doctest target
Jake-Moss 2e0ebc7
Fix doctest exceptions not being reported as pytest failures
Jake-Moss 1b31a67
Fix mpoly.deflation, fix invariant tests
Jake-Moss b2d2694
Make verbose tests identifible
Jake-Moss f34e228
Replace back ticks with quotes in exception strings
f482540
Clarify doc strings
5fc1d74
Create uncocumented.pxd, move undocumented function uses
703e0dc
Split `_truediv_scalar_` into two functions
4d22d95
Skip arb.hypgeom_2f1 non-convergence doctest
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
**fmpq_mpoly** -- multivariate polynomials over the rational numbers | ||
=============================================================================== | ||
|
||
.. autoclass :: flint.fmpq_mpoly_ctx | ||
:members: | ||
:inherited-members: | ||
:undoc-members: | ||
|
||
.. autoclass :: flint.fmpq_mpoly | ||
:members: | ||
:inherited-members: | ||
:undoc-members: | ||
|
||
.. autoclass :: flint.fmpq_mpoly_vec | ||
:members: | ||
:inherited-members: | ||
:undoc-members: | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
**fmpz_mod_mpoly** -- multivariate polynomials over the integers mod n | ||
=============================================================================== | ||
|
||
.. autoclass :: flint.fmpz_mod_mpoly_ctx | ||
:members: | ||
:inherited-members: | ||
:undoc-members: | ||
|
||
.. autoclass :: flint.fmpz_mod_mpoly | ||
:members: | ||
:inherited-members: | ||
:undoc-members: | ||
|
||
.. autoclass :: flint.fmpz_mod_mpoly_vec | ||
:members: | ||
:inherited-members: | ||
:undoc-members: | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
**fmpz_mpoly** -- multivariate polynomials over the integers | ||
=============================================================================== | ||
|
||
.. autoclass :: flint.fmpz_mpoly_ctx | ||
:members: | ||
:inherited-members: | ||
:undoc-members: | ||
|
||
.. autoclass :: flint.fmpz_mpoly | ||
:members: | ||
:inherited-members: | ||
:undoc-members: | ||
|
||
.. autoclass :: flint.fmpz_mpoly_vec | ||
:members: | ||
:inherited-members: | ||
:undoc-members: | ||
|
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
**nmod_mpoly** -- multivariate polynomials over the integers mod n (word-size n) | ||
=============================================================================== | ||
|
||
.. autoclass :: flint.nmod_mpoly_ctx | ||
:members: | ||
:inherited-members: | ||
:undoc-members: | ||
|
||
.. autoclass :: flint.nmod_mpoly | ||
:members: | ||
:inherited-members: | ||
:undoc-members: | ||
|
||
.. autoclass :: flint.nmod_mpoly_vec | ||
:members: | ||
:inherited-members: | ||
:undoc-members: | ||
|
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
from flint.flintlib.types.nmod cimport nmod_mat_t | ||
|
||
from flint.flintlib.types.flint cimport fmpz_struct | ||
from flint.flintlib.types.nmod cimport nmod_mpoly_ctx_t, nmod_mpoly_t | ||
|
||
cdef extern from "flint/nmod_types.h": | ||
int nmod_mat_is_square(const nmod_mat_t mat) | ||
|
||
cdef extern from "flint/nmod_mpoly.h": | ||
void nmod_mpoly_deflation(fmpz_struct * shift, fmpz_struct * stride, const nmod_mpoly_t A, const nmod_mpoly_ctx_t ctx) | ||
void nmod_mpoly_deflate(nmod_mpoly_t A, const nmod_mpoly_t B, const fmpz_struct * shift, const fmpz_struct * stride, const nmod_mpoly_ctx_t ctx) | ||
void nmod_mpoly_inflate(nmod_mpoly_t A, const nmod_mpoly_t B, const fmpz_struct * shift, const fmpz_struct * stride, const nmod_mpoly_ctx_t ctx) |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,6 +4,7 @@ pyfiles = [ | |
'__init__.py', | ||
'__main__.py', | ||
'test_all.py', | ||
'test_docstrings.py', | ||
] | ||
|
||
py.install_sources( | ||
|
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
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.