FLINT3.7.0-dev

_fq_nmod_poly_hamming_weight, fq_nmod_poly_hamming_weight

Synopsis#include <flint/fq_nmod_poly.h>
slong _fq_nmod_poly_hamming_weight(const fq_nmod_struct * op, slong len, const fq_nmod_ctx_t ctx)
slong fq_nmod_poly_hamming_weight(const fq_nmod_poly_t op, const fq_nmod_ctx_t ctx)

Return the number of nonzero coefficients.

Generated from the same template as _fq_poly_hamming_weight, whose documentation has the details.

Cite this page

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