1- from flint.flintlib.types.flint cimport fmpz_struct, fmpz_t, nmod_t, nn_ptr , slong, ulong
1+ from flint.flintlib.types.flint cimport fmpz_struct, fmpz_t, mp_limb_t, mp_ptr, nmod_t , slong, ulong
22from flint.flintlib.types.fmpq cimport fmpq_poly_t, fmpq_struct, fmpq_t
33from flint.flintlib.types.fmpz cimport fmpz_mat_t, fmpz_poly_t
44
@@ -7,6 +7,7 @@ from flint.flintlib.types.fmpz cimport fmpz_mat_t, fmpz_poly_t
77
88
99cdef extern from " flint/arith.h" :
10+ void arith_primorial(fmpz_t res, slong n)
1011 void _arith_harmonic_number(fmpz_t num, fmpz_t den, slong n)
1112 void arith_harmonic_number(fmpq_t x, slong n)
1213 void arith_stirling_number_1u(fmpz_t s, ulong n, ulong k)
@@ -27,11 +28,11 @@ cdef extern from "flint/arith.h":
2728 void arith_bell_number_vec(fmpz_struct * b, slong n)
2829 void arith_bell_number_vec_recursive(fmpz_struct * b, slong n)
2930 void arith_bell_number_vec_multi_mod(fmpz_struct * b, slong n)
30- ulong arith_bell_number_nmod(ulong n, nmod_t mod)
31- void arith_bell_number_nmod_vec(nn_ptr b, slong n, nmod_t mod)
32- void arith_bell_number_nmod_vec_recursive(nn_ptr b, slong n, nmod_t mod)
33- void arith_bell_number_nmod_vec_ogf(nn_ptr b, slong n, nmod_t mod)
34- int arith_bell_number_nmod_vec_series(nn_ptr b, slong n, nmod_t mod)
31+ mp_limb_t arith_bell_number_nmod(ulong n, nmod_t mod)
32+ void arith_bell_number_nmod_vec(mp_ptr b, slong n, nmod_t mod)
33+ void arith_bell_number_nmod_vec_recursive(mp_ptr b, slong n, nmod_t mod)
34+ void arith_bell_number_nmod_vec_ogf(mp_ptr b, slong n, nmod_t mod)
35+ int arith_bell_number_nmod_vec_series(mp_ptr b, slong n, nmod_t mod)
3536 double arith_bell_number_size(ulong n)
3637 void _arith_bernoulli_number(fmpz_t num, fmpz_t den, ulong n)
3738 void arith_bernoulli_number(fmpq_t x, ulong n)
@@ -46,14 +47,22 @@ cdef extern from "flint/arith.h":
4647 void arith_euler_number_vec(fmpz_struct * res, slong n)
4748 double arith_euler_number_size(ulong n)
4849 void arith_euler_polynomial(fmpq_poly_t poly, ulong n)
50+ void arith_euler_phi(fmpz_t res, const fmpz_t n)
51+ int arith_moebius_mu(const fmpz_t n)
52+ void arith_divisor_sigma(fmpz_t res, ulong k, const fmpz_t n)
4953 void arith_divisors(fmpz_poly_t res, const fmpz_t n)
5054 void arith_ramanujan_tau(fmpz_t res, const fmpz_t n)
5155 void arith_ramanujan_tau_series(fmpz_poly_t res, slong n)
5256 void arith_landau_function_vec(fmpz_struct * res, slong len )
57+ void arith_dedekind_sum_naive(fmpq_t s, const fmpz_t h, const fmpz_t k)
58+ double arith_dedekind_sum_coprime_d(double h, double k)
59+ void arith_dedekind_sum_coprime_large(fmpq_t s, const fmpz_t h, const fmpz_t k)
60+ void arith_dedekind_sum_coprime(fmpq_t s, const fmpz_t h, const fmpz_t k)
61+ void arith_dedekind_sum(fmpq_t s, const fmpz_t h, const fmpz_t k)
5362 void arith_number_of_partitions_vec(fmpz_struct * res, slong len )
54- void arith_number_of_partitions_nmod_vec(nn_ptr res, slong len , nmod_t mod)
63+ void arith_number_of_partitions_nmod_vec(mp_ptr res, slong len , nmod_t mod)
5564 # void trig_prod_init(trig_prod_t prod)
56- # void arith_hrr_expsum_factored(trig_prod_t prod, ulong k, ulong n)
65+ # void arith_hrr_expsum_factored(trig_prod_t prod, mp_limb_t k, mp_limb_t n)
5766 # void arith_number_of_partitions_mpfr(mpfr_t x, ulong n)
5867 void arith_number_of_partitions(fmpz_t x, ulong n)
5968 void arith_sum_of_squares(fmpz_t r, ulong k, const fmpz_t n)
0 commit comments