FLINT3.7.0-dev

nmod_poly_bit_pack

Synopsis#include <flint/nmod_poly.h>
void nmod_poly_bit_pack(fmpz_t f, const nmod_poly_t poly, flint_bitcnt_t bit_size)source

Sets f = \mathit{poly}(2^{\mathit{bit\_size}}). Every coefficient must be less than 2^{\mathit{bit\_size}}; 1 \le \mathit{bit\_size} < 3 \mathtt{FLINT\_BITS}. For bit_size = 0 or the zero polynomial, f = 0.

Cite this page

The FLINT team, “nmod_poly_bit_pack (nmod_poly.h),” FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev, 2026. https://flintlib.org/doc/nmod_poly/nmod_poly_bit_pack.html (generated 2026-10-20).