FLINT3.7.0-dev

nmod_mpoly_fit_length_fit_bits, nmod_mpoly_fit_length_reset_bits

Synopsis#include <flint/nmod_mpoly.h>
void nmod_mpoly_fit_length_fit_bits(nmod_mpoly_t A, slong len, flint_bitcnt_t bits, const nmod_mpoly_ctx_t ctx)source
void nmod_mpoly_fit_length_reset_bits(nmod_mpoly_t A, slong len, flint_bitcnt_t bits, const nmod_mpoly_ctx_t ctx)source

Ensure space for len terms with exponent fields of bits bits. nmod_mpoly_fit_length_fit_bits repacks the existing exponents if bits exceeds A->bits; nmod_mpoly_fit_length_reset_bits sets A->bits to bits and leaves the exponent data undefined, for use before overwriting all terms.

Cite this page

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