_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).
@misc{flint-doc-fq-nmod-poly-fq-nmod-poly-hamming-weight,
author = {{The FLINT team}},
title = {{\_fq\_nmod\_poly\_hamming\_weight, fq\_nmod\_poly\_hamming\_weight (fq\_nmod\_poly.h)}},
howpublished = {FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev},
year = {2026},
url = {https://flintlib.org/doc/fq_nmod_poly/_fq_nmod_poly_hamming_weight.html},
note = {Generated 2026-10-20}
}