Skip to content

Commit bf9d0d1

Browse files
Merge pull request #63 from GiacomoPope/introduce-submodules
Finish the `flint_base` submodule, depreciate old roots and factor out more utils
2 parents da48588 + f43b291 commit bf9d0d1

26 files changed

+103
-150
lines changed

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,13 @@ To do
122122
* Improved printing and string input/output
123123
* IPython hooks (TeX pretty-printing etc.)
124124

125+
CHANGELOG
126+
-------------
127+
128+
0.5.0
129+
130+
- gh-63: The `roots` method of `arb_poly`, and `nmod_poly` is no longer supported. Use `acb_roots(p).roots()` to get the old behaviour of returning the roots as `acb`. Note that the `roots` method of `fmpz_poly` and `fmpq_poly` currently returns the complex roots of the polynomial.
131+
125132
License
126133
------------
127134

src/flint/acb.pyx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
from flint.utils.typecheck cimport typecheck
12
from flint.flint_base.flint_base cimport flint_scalar
23
from flint.flint_base.flint_context cimport getprec
34

src/flint/acb_mat.pyx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1+
from flint.utils.typecheck cimport typecheck
12
from flint.flint_base.flint_context cimport getprec
2-
33
from flint.flint_base.flint_base cimport flint_mat
44

55
cdef acb_mat_coerce_operands(x, y):

src/flint/acb_poly.pyx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
1+
from flint.utils.typecheck cimport typecheck
12
from flint.flint_base.flint_context cimport getprec
2-
# TODO: waiting for fix on the roots method, currently
3-
# globally defined.
4-
# from flint.flint_base.flint_base cimport flint_poly
3+
from flint.flint_base.flint_base cimport flint_poly
54

65
cdef acb_poly_coerce_operands(x, y):
76
if isinstance(y, (int, long, float, complex, fmpz, fmpq, arb, acb, fmpz_poly, fmpq_poly, arb_poly)):

src/flint/acb_series.pyx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
from flint.utils.typecheck cimport typecheck
12
from flint.flint_base.flint_context cimport getprec, getcap
23
from flint.flint_base.flint_base cimport flint_series
34

src/flint/arb.pyx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ from cpython.version cimport PY_MAJOR_VERSION
22

33
from flint.flint_base.flint_context cimport getprec
44
from flint.flint_base.flint_base cimport flint_scalar
5+
from flint.utils.typecheck cimport typecheck
56
from flint.utils.conversion cimport chars_from_str, str_from_chars
67

78
cdef _str_trunc(s, trunc=0):

src/flint/arb_mat.pyx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
from flint.utils.typecheck cimport typecheck
12
from flint.flint_base.flint_context cimport getprec
23
from flint.flint_base.flint_base cimport flint_mat
34

src/flint/arb_poly.pyx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
1+
from flint.utils.typecheck cimport typecheck
12
from flint.flint_base.flint_context cimport getprec
2-
# TODO: waiting for fix on the roots method, currently
3-
# globally defined.
4-
# from flint.flint_base.flint_base cimport flint_poly
3+
from flint.flint_base.flint_base cimport flint_poly
54

65
cdef arb_poly_coerce_operands(x, y):
76
if isinstance(y, (int, long, float, fmpz, fmpq, arb, fmpz_poly, fmpq_poly)):

src/flint/arb_series.pyx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
from flint.utils.typecheck cimport typecheck
12
from flint.flint_base.flint_context cimport getprec, getcap
23
from flint.flint_base.flint_base cimport flint_series
34

src/flint/arf.pyx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
from flint.flint_base.flint_context cimport getprec
2+
from flint.utils.typecheck cimport typecheck
23
from flint.utils.conversion cimport prec_to_dps
34

45
cdef class arf:

0 commit comments

Comments
 (0)