_nmod_poly_bit_pack
Synopsis
#include <flint/nmod_poly.h>void _nmod_poly_bit_pack(nn_ptr res, nn_srcptr poly, slong len, flint_bitcnt_t bits)sourceWrites \sum_i \mathit{poly}_i 2^{i \cdot \mathit{bits}} to res as \lceil \mathit{len} \cdot \mathit{bits} / \mathtt{FLINT\_BITS} \rceil limbs. Requires \mathit{len} \ge 1, 1 \le \mathit{bits} < 3 \mathtt{FLINT\_BITS} and every coefficient less than 2^{\mathit{bits}}.
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).
@misc{flint-doc-nmod-poly-nmod-poly-bit-pack,
author = {{The FLINT team}},
title = {{\_nmod\_poly\_bit\_pack (nmod\_poly.h)}},
howpublished = {FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev},
year = {2026},
url = {https://flintlib.org/doc/nmod_poly/_nmod_poly_bit_pack.html},
note = {Generated 2026-10-20}
}