Skip to content

Adding Fmpz mpoly #59, cont. #132

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 106 commits into from
Jul 8, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
106 commits
Select commit Hold shift + click to select a range
357e435
Make it work with flint 3.0
deinst Aug 11, 2023
e973105
Change from distutils to setuptools
deinst Aug 11, 2023
74c5f85
Change include paths for flint 3.0
deinst Aug 16, 2023
c24b2ff
Starting attack at fmpz_mpoly
deinst Aug 17, 2023
0489152
Made the tests pass.
deinst Aug 17, 2023
518c0a7
Merge remote-tracking branch 'upstream/master' into fmpz_mpoly
deinst Aug 17, 2023
89d567c
Back out changes for flint3 and setuptools
deinst Aug 17, 2023
7176fe7
add prototype for fmpz_mpoly_sort_terms.
deinst Aug 18, 2023
3dbc6ae
Moved generic pieces of fmpz_mpoly_context to base class.
deinst Aug 18, 2023
dc7be11
doctests for fmpz_mpoly_context object
deinst Aug 19, 2023
b5d0e91
Merge branch 'master' into fmpz_mpoly
deinst Aug 21, 2023
843b9f3
Added ability to construct an fmpz_mpoly from a dictionary.
deinst Aug 23, 2023
f346904
Added create_fmpz_mpoly to remove blocks of redundant code.
deinst Aug 25, 2023
3407bce
Initial steps towards fmpz_mpoly.
deinst Aug 28, 2023
96178ce
Merge branch 'master' into fmpz_mpoly
deinst Sep 9, 2023
0f2fceb
Small advances in fmpz_mpoly.
deinst Sep 12, 2023
fe614c5
Merge branch 'master' into fmpz_mpoly
deinst Sep 14, 2023
fbe31b7
Added fmpz_mpoly_factor and fmpq_mpoly.
deinst Sep 22, 2023
7f9c193
Added fmpq_mpoly to setup.py
deinst Sep 22, 2023
70b23be
Merge branch 'master' into fmpz_mpoly
deinst Sep 22, 2023
692c3e7
Merge branch 'master' into fmpz_mpoly
deinst Sep 23, 2023
ab7e114
Added factoring to fmpq_mpoly
deinst Sep 24, 2023
2ebf15d
Framing of fmpz_mpoly_q laid out.
deinst Sep 24, 2023
ca4391d
Fixed small bugs in fmpz_mpoly and fmpq_mpoly
deinst Sep 24, 2023
b156482
Merge branch 'master' into fmpz_mpoly
deinst Sep 28, 2023
1313637
Added printing of fmpz_mpoly_q
deinst Sep 30, 2023
5249c19
Merge branch 'master' into fmpz_mpoly
deinst Sep 30, 2023
80b1325
Added operations on fmpz_mpoly that return fmpq_mpoly of fmpz_mpoly_q
deinst Oct 9, 2023
e3c81d8
Added tests, checks for division by zero to fmpz_mpoly
deinst Oct 10, 2023
8834263
Merge branch 'master' into fmpz_mpoly
Jake-Moss Apr 5, 2024
f2a8bbb
Small refactor and general tidy of fmpz_mpoly and fmpq_mpoly
Jake-Moss Apr 10, 2024
9e14bcb
Reimplement fmpz_mpoly.__call__, add joint_context method
Jake-Moss Apr 14, 2024
d5e2b56
Make joint context creation and coercion explicit
Jake-Moss Apr 15, 2024
941041c
Implemented fmpz_mpoly partial function composition
Jake-Moss Apr 15, 2024
2ba6a29
Disallow positional partial application
Jake-Moss Apr 15, 2024
109fad8
Revamp fmpz_mpoly tests, add a handful of functions
Jake-Moss Apr 21, 2024
ce5c9e7
Use create_fmpz_mpoly in favour of __new__ init pattern
Jake-Moss Apr 22, 2024
8752894
Add super class for Flint exceptions
Jake-Moss Apr 22, 2024
1839619
Add exception to ordering if ladder
Jake-Moss Apr 22, 2024
ca3dd70
Avoid from ... import *
Jake-Moss Apr 22, 2024
ea19511
Allow 0 variables and replace asserts
Jake-Moss Apr 22, 2024
62f1446
Support 0 var fmpz_mpolys
Jake-Moss Apr 22, 2024
df9b929
Fix uninitialised variable warnings
Jake-Moss Apr 22, 2024
40b383d
Remove unused imports and coercions to fmpq_mpoly
Jake-Moss Apr 22, 2024
35c23a4
Enabling the troublesome tests
Jake-Moss Apr 22, 2024
3d51daa
Fix variable being prematurely garbage collected
Jake-Moss Apr 24, 2024
e19044e
Check malloc return value
Jake-Moss Apr 25, 2024
fa07adf
Instrument windows CI: will be reverted
Jake-Moss Apr 25, 2024
63f22fa
Revert "Instrument windows CI: will be reverted"
Jake-Moss Apr 25, 2024
13f5186
Merge branch 'master' into fmpz_mpoly
Jake-Moss Apr 25, 2024
8a09691
Add fmpq_mpoly and fmpz_mpoly_q to meson.build
Jake-Moss Apr 25, 2024
6c0e0cc
Add fmpz_vec and use it
Jake-Moss May 3, 2024
0878b38
Mark char* obtained from python objects as const
Jake-Moss May 3, 2024
98a0cb7
Update flintlib/fmpz_mpoly.pxd
Jake-Moss May 4, 2024
4b08299
Add fmpz_mpoly_vec and use it were appropriate
Jake-Moss May 4, 2024
82885a4
Add build-install to .gitignore
Jake-Moss May 4, 2024
f083101
Add coverage option to meson `spin build --clean -- -Dcoverage=true`
Jake-Moss May 5, 2024
8239992
Add doc strings, rewrite from_dict method to use the fmpz_vec
Jake-Moss May 5, 2024
f35903e
Forgot about the interface I wrote, whoops
Jake-Moss May 5, 2024
a61b4e4
Fix doctests
Jake-Moss May 6, 2024
a108522
Keep the setup.py up to date
Jake-Moss May 6, 2024
59a34ad
100% fmpz_mpoly test coverage.
Jake-Moss May 6, 2024
a7eb6f6
Rearrange methods
Jake-Moss May 6, 2024
aac76b4
Update fmpq_mpoly, bring to parity with fmpz_mpoly, 100% coverage
Jake-Moss May 6, 2024
a31d49c
Forgot these files
Jake-Moss May 6, 2024
b408ae5
Merge branch 'master' into fmpz_mpoly
Jake-Moss Jun 20, 2024
29c8015
Remove _init from flint_mpoly_context
Jake-Moss Jun 20, 2024
a961889
Refactor variable name creation and context retrieval
Jake-Moss Jun 20, 2024
d7e23fc
Remove joint_context
Jake-Moss Jun 20, 2024
d1632d2
Remove pickle decorators
Jake-Moss Jun 20, 2024
a485ca3
Remove star imports
Jake-Moss Jun 20, 2024
17b3406
Add Ordering enum class and remove cpdefs
Jake-Moss Jun 20, 2024
4cf40f9
Remove two places where contexts were created on the fly
Jake-Moss Jun 20, 2024
4e22e14
Prefer fmp[zq]_mpoly_divides to divmod
Jake-Moss Jun 20, 2024
6af7433
Typo in doc string
Jake-Moss Jun 20, 2024
aef740c
Remove fmpz_mpoly_q
Jake-Moss Jun 20, 2024
3ebd8ff
Prevent flint clear of null pointer
Jake-Moss Jun 20, 2024
6e12555
Fix poor error reporting
Jake-Moss Jun 20, 2024
317189a
Add variable_to_index method
Jake-Moss Jun 20, 2024
250861f
Use setdefault over normal dict insertion
Jake-Moss Jun 21, 2024
bc61ca9
Use ascii over utf-8 decoding for c strings
Jake-Moss Jun 21, 2024
e175854
Typos
Jake-Moss Jun 21, 2024
7ec3112
Remove unused var
Jake-Moss Jun 21, 2024
96fa8e6
Prefer .index over dict, raise nicer exception
Jake-Moss Jun 21, 2024
59bce43
fixup! Remove fmpz_mpoly_q
Jake-Moss Jun 21, 2024
492f962
Typo
Jake-Moss Jun 24, 2024
fcd9294
Remove hash
Jake-Moss Jun 24, 2024
efb2c27
Clarify integral doc string
Jake-Moss Jun 24, 2024
4bef177
Split __call__ methods
Jake-Moss Jun 24, 2024
ada4b2f
Raise exception on parsing failure
Jake-Moss Jun 24, 2024
e093ac1
Remove unnecessary secondary results
Jake-Moss Jul 1, 2024
faa1fb2
Drop sequence-like indexing
Jake-Moss Jul 1, 2024
fbc6854
Make fmpq_mpoly and fmpz_mpoly more dict-like
Jake-Moss Jul 1, 2024
10c19be
Add alias for keys/value to monoms/coeffs, add terms function
Jake-Moss Jul 2, 2024
d70c2f9
Remove keys/values/exponent_tuple functions, rename items -> terms
Jake-Moss Jul 4, 2024
8f76c6a
Remove in-place add, sub, and mul
Jake-Moss Jul 4, 2024
dc7c787
Add missing subs and compose docs, fix old error message and comment
Jake-Moss Jul 4, 2024
e042933
Change .degrees to return a tuple over a dict
Jake-Moss Jul 4, 2024
128ae01
Remove unused imports, use lower case to start exception message
Jake-Moss Jul 4, 2024
1317bb0
Fix composition with no-generator polynomial
Jake-Moss Jul 8, 2024
424dc4f
fixup! Add alias for keys/value to monoms/coeffs, add terms function
Jake-Moss Jul 8, 2024
1c88ec3
Revert "Remove in-place add, sub, and mul"
Jake-Moss Jul 8, 2024
fb10785
Make in-place operators functions, and explict
Jake-Moss Jul 8, 2024
c8782c5
Simplify subs method, allow generator index
Jake-Moss Jul 8, 2024
c0c0517
fixup! Remove unused imports, use lower case to start exception message
Jake-Moss Jul 8, 2024
d4e6589
fixup! fixup! Remove unused imports, use lower case to start exceptio…
Jake-Moss Jul 8, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Starting attack at fmpz_mpoly
added missing fmpz_mpoly_sort_terms to _flint.pxd
updated fmpz_mpoly_context to include names and other term orders
Fixed up arithmetic to use python 3 protocol and removed automatic
conversion.
  • Loading branch information
deinst committed Aug 17, 2023
commit c24b2ff0a5983d9047e974b030677bb79d72ec7b
2 changes: 2 additions & 0 deletions src/flint/_flint.pxd
Original file line number Diff line number Diff line change
Expand Up @@ -2397,6 +2397,8 @@ cdef extern from "flint/fmpz_mpoly.h":
void fmpz_mpoly_get_term_monomial(fmpz_mpoly_t M, const fmpz_mpoly_t A,
slong i, const fmpz_mpoly_ctx_t ctx)

void fmpz_mpoly_sort_terms(fmpz_mpoly_t A, const fmpz_mpoly_ctx_t ctx)

# Addition/Subtraction
void fmpz_mpoly_add_fmpz(fmpz_mpoly_t A, const fmpz_mpoly_t B, const fmpz_t c, const fmpz_mpoly_ctx_t ctx)
void fmpz_mpoly_add_si(fmpz_mpoly_t A, const fmpz_mpoly_t B, slong c, const fmpz_mpoly_ctx_t ctx)
Expand Down
Loading