FLINT3.7.0-dev

fq_nmod_mpoly_fit_length, fq_nmod_mpoly_realloc, fq_nmod_mpoly_fit_length_fit_bits, fq_nmod_mpoly_fit_length_reset_bits

Synopsis#include <flint/fq_nmod_mpoly.h>
void fq_nmod_mpoly_fit_length(fq_nmod_mpoly_t A, slong length, const fq_nmod_mpoly_ctx_t ctx)source
void fq_nmod_mpoly_realloc(fq_nmod_mpoly_t A, slong alloc, const fq_nmod_mpoly_ctx_t ctx)source
void fq_nmod_mpoly_fit_length_fit_bits(fq_nmod_mpoly_t A, slong len, flint_bitcnt_t bits, const fq_nmod_mpoly_ctx_t ctx)source
void fq_nmod_mpoly_fit_length_reset_bits(fq_nmod_mpoly_t A, slong len, flint_bitcnt_t bits, const fq_nmod_mpoly_ctx_t ctx)source

Ensure space for length terms, change the allocation to alloc terms (not less than the length), and ensure space with exponent fields of at least (fit_bits, repacking) or exactly (reset_bits, discarding the exponent data) bits bits.

Cite this page

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