FLINT3.7.0-dev

_fmpz_poly_bit_unpack, _fmpz_poly_bit_unpack_unsigned

Synopsis#include <flint/fmpz_poly.h>
int _fmpz_poly_bit_unpack(fmpz * poly, slong nlo, slong nhi, nn_srcptr arr, flint_bitcnt_t bit_size, int negate)source
void _fmpz_poly_bit_unpack_unsigned(fmpz * poly, slong nlo, slong nhi, nn_srcptr arr, flint_bitcnt_t bit_size)source

Unpack the signed (respectively unsigned) coefficients in the fields \mathit{nlo}, \ldots, \mathit{nhi} - 1 of bit_size bits of arr, written by _fmpz_poly_bit_pack, to poly[0], ..., poly[nhi - nlo - 1], negating them if negate is -1. The signed version returns the final borrow: if it is nonzero, a coefficient \pm 1 (with the sign given by negate) has to be added at index nhi.

Cite this page

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