FLINT3.7.0-dev

_fmpz_mod_poly_precompute_matrix, fmpz_mod_poly_precompute_matrix

Synopsis#include <flint/fmpz_mod_poly.h>
void _fmpz_mod_poly_precompute_matrix(fmpz_mat_t A, const fmpz * poly1, const fmpz * poly2, slong len2, const fmpz * poly2inv, slong len2inv, const fmpz_mod_ctx_t ctx)source
void fmpz_mod_poly_precompute_matrix(fmpz_mat_t A, const fmpz_mod_poly_t poly1, const fmpz_mod_poly_t poly2, const fmpz_mod_poly_t poly2inv, const fmpz_mod_ctx_t ctx)source

Set the rows of AA to the coefficients of gi mod hg^i \bmod h for 0≤i<m0 \le i < m, where gg = poly1 is reduced modulo hh = poly2, poly2inv is the inverse of the reversal of hh, and AA must have been initialised as an m×deg⁡hm \times \deg h matrix with m=⌊deg⁡h⌋+1m = \lfloor \sqrt{\deg h} \rfloor + 1. This is the precomputation for repeated compositions with the same gg and hh.

Cite this page

The FLINT team, “_fmpz_mod_poly_precompute_matrix, fmpz_mod_poly_precompute_matrix (fmpz_mod_poly.h),” FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev, 2026. https://flintlib.org/doc/fmpz_mod_poly/_fmpz_mod_poly_precompute_matrix.html (generated 2026-11-02).