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)sourcevoid nmod_mpoly_fit_length_reset_bits(nmod_mpoly_t A, slong len, flint_bitcnt_t bits, const nmod_mpoly_ctx_t ctx)sourceEnsure 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).
@misc{flint-doc-nmod-mpoly-nmod-mpoly-fit-length-fit-bits,
author = {{The FLINT team}},
title = {{nmod\_mpoly\_fit\_length\_fit\_bits, nmod\_mpoly\_fit\_length\_reset\_bits (nmod\_mpoly.h)}},
howpublished = {FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev},
year = {2026},
url = {https://flintlib.org/doc/nmod_mpoly/nmod_mpoly_fit_length_fit_bits.html},
note = {Generated 2026-10-20}
}