@@ -180,6 +180,7 @@ cdef extern from "flint/nmod_mat.h":
180180
181181cdef extern from " flint/ulong_extras.h" :
182182 ulong n_gcd(ulong n, ulong k)
183+ int n_is_prime(ulong n)
183184
184185cdef extern from " flint/fmpz.h" :
185186 ctypedef fmpz_struct fmpz_t[1 ]
@@ -210,6 +211,7 @@ cdef extern from "flint/fmpz.h":
210211 int fmpz_cmp_ui( fmpz_t f, ulong g)
211212 int fmpz_cmp_si( fmpz_t f, long g)
212213 int fmpz_cmpabs( fmpz_t f, fmpz_t g)
214+ int fmpz_equal_si(const fmpz_t f, long g)
213215 int fmpz_is_even(fmpz_t f)
214216 int fmpz_is_odd(fmpz_t f)
215217 mp_size_t fmpz_size(fmpz_t f)
@@ -235,6 +237,7 @@ cdef extern from "flint/fmpz.h":
235237 int fmpz_sqrtmod(fmpz_t b, fmpz_t a, fmpz_t p)
236238 void fmpz_sqrt(fmpz_t f, fmpz_t g)
237239 void fmpz_sqrtrem(fmpz_t f, fmpz_t r, fmpz_t g)
240+ void fmpz_root(fmpz_t r, const fmpz_t f, long n)
238241 ulong fmpz_fdiv_ui(fmpz_t g, ulong h)
239242 ulong fmpz_mod_ui(fmpz_t f, fmpz_t g, ulong h)
240243 void fmpz_mod(fmpz_t f, fmpz_t g, fmpz_t h)
@@ -393,6 +396,8 @@ cdef extern from "flint/fmpz_poly.h":
393396 void fmpz_poly_cos_minpoly(fmpz_poly_t, ulong)
394397 void fmpz_poly_swinnerton_dyer(fmpz_poly_t, ulong)
395398
399+ int fmpz_poly_sqrt(fmpz_poly_t b, const fmpz_poly_t a)
400+
396401cdef extern from " flint/fmpz_poly_factor.h" :
397402 void fmpz_poly_factor_init(fmpz_poly_factor_t fac)
398403 void fmpz_poly_factor_clear(fmpz_poly_factor_t fac)
@@ -451,6 +456,9 @@ cdef extern from "flint/fmpz_mat.h":
451456 void fmpz_mat_snf(fmpz_mat_t S, const fmpz_mat_t A)
452457 int fmpz_mat_is_in_snf(const fmpz_mat_t A)
453458
459+ void fmpz_mat_charpoly(fmpz_poly_t cp, const fmpz_mat_t mat)
460+ void fmpz_mat_minpoly(fmpz_poly_t cp, const fmpz_mat_t mat)
461+
454462cdef extern from " flint/fmpz_lll.h" :
455463 ctypedef struct fmpz_lll_struct:
456464 double delta
@@ -675,6 +683,9 @@ cdef extern from "flint/fmpq_mat.h":
675683 long fmpq_mat_rref(fmpq_mat_t B, fmpq_mat_t A)
676684 void fmpq_mat_transpose(fmpq_mat_t B, fmpq_mat_t A)
677685
686+ void fmpq_mat_charpoly(fmpq_poly_t cp, const fmpq_mat_t mat)
687+ void fmpq_mat_minpoly(fmpq_poly_t cp, const fmpq_mat_t mat)
688+
678689cdef extern from " flint/arith.h" :
679690 void arith_number_of_partitions(fmpz_t res, ulong n)
680691 int arith_moebius_mu(fmpz_t n)
@@ -722,6 +733,9 @@ cdef extern from "arf.h":
722733 ctypedef int arf_rnd_t
723734 cdef arf_rnd_t ARF_RND_DOWN
724735 cdef arf_rnd_t ARF_RND_NEAR
736+ cdef arf_rnd_t ARF_RND_FLOOR
737+ cdef arf_rnd_t ARF_RND_CEIL
738+ cdef arf_rnd_t ARF_RND_UP
725739
726740 void arf_init(arf_t x)
727741 void arf_clear(arf_t x)
@@ -1170,6 +1184,7 @@ cdef extern from "acb.h":
11701184 int acb_contains(const acb_t x, const acb_t y)
11711185 int acb_get_unique_fmpz(fmpz_t z, const acb_t x)
11721186 int acb_contains_int(const acb_t x)
1187+ void acb_union(acb_t z, const acb_t x, const acb_t y, long prec)
11731188 void acb_set_ui(acb_t z, ulong c)
11741189 void acb_set_si(acb_t z, long c)
11751190 void acb_set_fmpz(acb_t z, const fmpz_t c)
@@ -2183,6 +2198,8 @@ cdef extern from "arb_fmpz_poly.h":
21832198 void arb_fmpz_poly_evaluate_arb(arb_t res, const fmpz_poly_t poly, const arb_t x, long prec)
21842199 void arb_fmpz_poly_evaluate_acb(acb_t res, const fmpz_poly_t poly, const acb_t x, long prec)
21852200 void arb_fmpz_poly_complex_roots(acb_ptr roots, const fmpz_poly_t poly, int flags, long prec)
2201+ ulong arb_fmpz_poly_deflation(const fmpz_poly_t poly)
2202+ void arb_fmpz_poly_deflate(fmpz_poly_t res, const fmpz_poly_t poly, ulong deflation)
21862203
21872204cdef extern from " acb_dft.h" :
21882205 void acb_dft(acb_ptr w, acb_srcptr v, long n, long prec)
0 commit comments