From 1535993547843027a5d99c6232569d00229109d6 Mon Sep 17 00:00:00 2001 From: Vincent Delecroix Date: Mon, 11 Dec 2023 11:17:57 +0100 Subject: [PATCH 1/3] remove extra ; in doc --- doc/source/fft_small.rst | 2 +- doc/source/gr_mat.rst | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/source/fft_small.rst b/doc/source/fft_small.rst index 58307ac4db..fb48bd9ac9 100644 --- a/doc/source/fft_small.rst +++ b/doc/source/fft_small.rst @@ -41,7 +41,7 @@ Polynomial arithmetic --------------------------------------------------------------------------------- .. function:: void _nmod_poly_mul_mid_mpn_ctx(ulong * z, ulong zl, ulong zh, const ulong * a, ulong an, const ulong * b, ulong bn, nmod_t mod, mpn_ctx_t R) - void _nmod_poly_mul_mid_default_mpn_ctx(z res, slong zl, slong zh, mp_srcptr a, slong an, mp_srcptr b, slong bn, nmod_t mod); + void _nmod_poly_mul_mid_default_mpn_ctx(mp_ptr res, slong zl, slong zh, mp_srcptr a, slong an, mp_srcptr b, slong bn, nmod_t mod) Writes to ``z`` the middle product containing coefficients in the range `[zl, zh)` of the product of the polynomials ``(a, an)`` and ``(b, bn)``, diff --git a/doc/source/gr_mat.rst b/doc/source/gr_mat.rst index 6eb56db5bb..aa979923db 100644 --- a/doc/source/gr_mat.rst +++ b/doc/source/gr_mat.rst @@ -224,7 +224,7 @@ Arithmetic .. function:: int gr_mat_sub(gr_mat_t res, const gr_mat_t mat1, const gr_mat_t mat2, gr_ctx_t ctx) .. function:: int gr_mat_mul_classical(gr_mat_t res, const gr_mat_t mat1, const gr_mat_t mat2, gr_ctx_t ctx) - int gr_mat_mul_strassen(gr_mat_t C, const gr_mat_t A, const gr_mat_t B, gr_ctx_t ctx); + int gr_mat_mul_strassen(gr_mat_t C, const gr_mat_t A, const gr_mat_t B, gr_ctx_t ctx) int gr_mat_mul_generic(gr_mat_t C, const gr_mat_t A, const gr_mat_t B, gr_ctx_t ctx) int gr_mat_mul(gr_mat_t res, const gr_mat_t mat1, const gr_mat_t mat2, gr_ctx_t ctx) From 6f847041870e2e40068d2ae555b3a7fb9da372a3 Mon Sep 17 00:00:00 2001 From: Vincent Delecroix Date: Mon, 11 Dec 2023 11:18:42 +0100 Subject: [PATCH 2/3] remove deprecated fmpq_poly_scalar_mul_mpq from documentation --- doc/source/fmpq_poly.rst | 4 ---- 1 file changed, 4 deletions(-) diff --git a/doc/source/fmpq_poly.rst b/doc/source/fmpq_poly.rst index 265cecbec5..fb3ac81847 100644 --- a/doc/source/fmpq_poly.rst +++ b/doc/source/fmpq_poly.rst @@ -599,10 +599,6 @@ Scalar multiplication and division Sets ``rop`` to `c` times ``op``. Assumes that the ``fmpz_t c`` is not part of ``rop``. -.. function:: void fmpq_poly_scalar_mul_mpq(fmpq_poly_t rop, const fmpq_poly_t op, const fmpq_t c) - - Sets ``rop`` to `c` times ``op``. - .. function:: void _fmpq_poly_scalar_div_fmpz(fmpz * rpoly, fmpz_t rden, const fmpz * poly, const fmpz_t den, slong len, const fmpz_t c) Sets ``(rpoly, rden, len)`` to ``(poly, den, len)`` divided by `c`, From e1ecaf608b4baea1874a8fdfd701cd5779b270fd Mon Sep 17 00:00:00 2001 From: Vincent Delecroix Date: Mon, 11 Dec 2023 11:19:00 +0100 Subject: [PATCH 3/3] add fmpq_poly_scalar_mul_fmpq in doc --- doc/source/fmpq_poly.rst | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/doc/source/fmpq_poly.rst b/doc/source/fmpq_poly.rst index fb3ac81847..69787311a5 100644 --- a/doc/source/fmpq_poly.rst +++ b/doc/source/fmpq_poly.rst @@ -586,11 +586,9 @@ Scalar multiplication and division Supports aliasing of ``(rpoly, den)`` and ``(poly, den)``. The ``fmpz_t``'s `r` and `s` may not be part of ``(rpoly, rden)``. -.. function:: void fmpq_poly_scalar_mul_si(fmpq_poly_t rop, const fmpq_poly_t op, slong c) - - Sets ``rop`` to `c` times ``op``. - -.. function:: void fmpq_poly_scalar_mul_ui(fmpq_poly_t rop, const fmpq_poly_t op, ulong c) +.. function:: void fmpq_poly_scalar_mul_fmpq(fmpq_poly_t rop, const fmpq_poly_t op, const fmpq_t c) + void fmpq_poly_scalar_mul_si(fmpq_poly_t rop, const fmpq_poly_t op, slong c) + void fmpq_poly_scalar_mul_ui(fmpq_poly_t rop, const fmpq_poly_t op, ulong c) Sets ``rop`` to `c` times ``op``.