Skip to content

Commit ba37169

Browse files
Add type hints for added mul_low and pow_trunc methods
1 parent 4c633ee commit ba37169

File tree

3 files changed

+6
-0
lines changed

3 files changed

+6
-0
lines changed

src/flint/types/fmpq_poly.pyi

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,8 @@ class fmpq_poly(flint_poly[fmpq]):
7171
def left_shift(self, n: int, /) -> fmpq_poly: ...
7272
def right_shift(self, n: int, /) -> fmpq_poly: ...
7373
def truncate(self, n: int, /) -> fmpq_poly: ...
74+
def mul_low(self, other: fmpq_poly, n: int) -> fmpq_poly: ...
75+
def pow_trunc(self, e: int, n: int) -> fmpq_poly: ...
7476

7577
def gcd(self, other: ifmpq_poly, /) -> fmpq_poly: ...
7678
def discriminant(self) -> fmpq: ...

src/flint/types/fmpz_poly.pyi

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,8 @@ class fmpz_poly(flint_poly[fmpz]):
5959
def left_shift(self, n: int, /) -> fmpz_poly: ...
6060
def right_shift(self, n: int, /) -> fmpz_poly: ...
6161
def truncate(self, n: int, /) -> fmpz_poly: ...
62+
def mul_low(self, other: fmpz_poly, n: int) -> fmpz_poly: ...
63+
def pow_trunc(self, e: int, n: int) -> fmpz_poly: ...
6264

6365
def gcd(self, other: ifmpz_poly, /) -> fmpz_poly: ...
6466
def content(self) -> fmpz: ...

src/flint/types/nmod_poly.pyi

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,8 @@ class nmod_poly(flint_poly[nmod]):
5656
def __rdivmod__(self, other: inmod_poly) -> tuple[nmod_poly, nmod_poly]: ...
5757
def left_shift(self, n: int) -> nmod_poly: ...
5858
def right_shift(self, n: int) -> nmod_poly: ...
59+
def mul_low(self, other: nmod_poly, n: int) -> nmod_poly: ...
60+
def pow_trunc(self, e: int, n: int) -> nmod_poly: ...
5961
def __pow__(self, other: int, mod: inmod_poly | None = None) -> nmod_poly: ...
6062
def pow_mod(
6163
self, e: int, modulus: inmod_poly, mod_rev_inv: inmod_poly | None = None

0 commit comments

Comments
 (0)