Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Correct doc strings for deflation_monom #220

Merged
merged 1 commit into from
Sep 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/flint/types/fmpq_mpoly.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -1088,8 +1088,8 @@ cdef class fmpq_mpoly(flint_mpoly):
def deflation_monom(self) -> tuple[fmpq_mpoly, list[int], fmpq_mpoly]:
"""
Compute the exponent vector ``N`` and monomial ``m`` such that ``p(X^(1/N))
= m * q(X^N)`` for maximal N. Importantly the deflation itself is not computed
here. The returned monomial allows the undo-ing of the deflation.
= m * q(X^N)`` for maximal N. The returned monomial allows the undo-ing of the
deflation.

>>> from flint import Ordering
>>> ctx = fmpq_mpoly_ctx.get_context(2, Ordering.lex, nametup=('x', 'y'))
Expand Down
4 changes: 2 additions & 2 deletions src/flint/types/fmpz_mod_mpoly.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -1163,8 +1163,8 @@ cdef class fmpz_mod_mpoly(flint_mpoly):
def deflation_monom(self) -> tuple[fmpz_mod_mpoly, list[int], fmpz_mod_mpoly]:
"""
Compute the exponent vector ``N`` and monomial ``m`` such that ``p(X^(1/N))
= m * q(X^N)`` for maximal N. Importantly the deflation itself is not computed
here. The returned monomial allows the undo-ing of the deflation.
= m * q(X^N)`` for maximal N. The returned monomial allows the undo-ing of the
deflation.

>>> from flint import Ordering
>>> ctx = fmpz_mod_mpoly_ctx.get_context(2, Ordering.lex, 11, nametup=('x', 'y'))
Expand Down
4 changes: 2 additions & 2 deletions src/flint/types/fmpz_mpoly.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -1185,8 +1185,8 @@ cdef class fmpz_mpoly(flint_mpoly):
def deflation_monom(self) -> tuple[fmpz_mpoly, list[int], fmpz_mpoly]:
"""
Compute the exponent vector ``N`` and monomial ``m`` such that ``p(X^(1/N))
= m * q(X^N)`` for maximal N. Importantly the deflation itself is not computed
here. The returned monomial allows the undo-ing of the deflation.
= m * q(X^N)`` for maximal N. The returned monomial allows the undo-ing of the
deflation.

>>> from flint import Ordering
>>> ctx = fmpz_mpoly_ctx.get_context(2, Ordering.lex, nametup=('x', 'y'))
Expand Down
6 changes: 3 additions & 3 deletions src/flint/types/fmpz_poly.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -644,9 +644,9 @@ cdef class fmpz_poly(flint_poly):

def deflation_monom(self) -> tuple[fmpz_poly, int, fmpz_poly]:
"""
Compute the exponent ``n`` and monomial ``m`` such that ``p(x^(1/n))
= m * q(x^n)`` for maximal n. Importantly the deflation itself is not computed
here. The returned monomial allows the undo-ing of the deflation.
Compute the exponent ``n`` and monomial ``m`` such that ``p(x^(1/n)) = m *
q(x^n)`` for maximal n. The returned monomial allows the undo-ing of the
deflation.

>>> f = fmpz_poly([1, 0, 1])
>>> f.deflation_monom()
Expand Down
4 changes: 2 additions & 2 deletions src/flint/types/nmod_mpoly.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -1135,8 +1135,8 @@ cdef class nmod_mpoly(flint_mpoly):
def deflation_monom(self) -> tuple[nmod_mpoly, list[int], nmod_mpoly]:
"""
Compute the exponent vector ``N`` and monomial ``m`` such that ``p(X^(1/N))
= m * q(X^N)`` for maximal N. Importantly the deflation itself is not computed
here. The returned monomial allows the undo-ing of the deflation.
= m * q(X^N)`` for maximal N. The returned monomial allows the undo-ing of the
deflation.

>>> from flint import Ordering
>>> ctx = nmod_mpoly_ctx.get_context(2, Ordering.lex, 11, nametup=('x', 'y'))
Expand Down
Loading