Skip to content

Commit 006f852

Browse files
committed
fix: update fmpq_poly_struct and arith_divisor_sigma
1 parent eb9dde4 commit 006f852

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

src/flint/_flint.pxd

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -532,9 +532,9 @@ cdef extern from "flint/fmpq.h":
532532
cdef extern from "flint/fmpq_poly.h":
533533
ctypedef struct fmpq_poly_struct:
534534
fmpz_struct * coeffs
535-
fmpz_t den
536535
long alloc
537536
long length
537+
fmpz_t den
538538
ctypedef fmpq_poly_struct fmpq_poly_t[1]
539539
void fmpq_poly_init(fmpq_poly_t poly)
540540
void fmpq_poly_init2(fmpq_poly_t poly, long alloc)
@@ -703,7 +703,7 @@ cdef extern from "flint/fmpq_mat.h":
703703
cdef extern from "flint/arith.h":
704704
void arith_number_of_partitions(fmpz_t res, ulong n)
705705
int arith_moebius_mu(fmpz_t n)
706-
void arith_divisor_sigma(fmpz_t v, fmpz_t n, ulong k)
706+
void arith_divisor_sigma(fmpz_t v, ulong k, fmpz_t n)
707707
void arith_euler_phi(fmpz_t v, fmpz_t n)
708708
void arith_bell_number(fmpz_t v, ulong n)
709709
void arith_euler_number(fmpz_t v, ulong n)

src/flint/fmpz.pyx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -559,7 +559,7 @@ cdef class fmpz(flint_scalar):
559559
605263138639095300
560560
"""
561561
cdef fmpz v = fmpz()
562-
arith_divisor_sigma(v.val, n.val, k)
562+
arith_divisor_sigma(v.val, k, n.val)
563563
return v
564564

565565
def euler_phi(n):

0 commit comments

Comments
 (0)