FLINT3.7.0-dev

_fq_poly_hamming_weight, fq_poly_hamming_weight

Synopsis#include <flint/fq_poly.h>
slong _fq_poly_hamming_weight(const fq_struct * op, slong len, const fq_ctx_t ctx)
slong fq_poly_hamming_weight(const fq_poly_t op, const fq_ctx_t ctx)

Return the number of nonzero coefficients.

Cite this page

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