FLINT3.7.0-dev

fq_default_poly_hamming_weight

Synopsis#include <flint/fq_default_poly.h>
slong fq_default_poly_hamming_weight(const fq_default_poly_t op, const fq_default_ctx_t ctx)source

Returns the number of nonzero coefficients.

Cite this page

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