FLINT3.7.0-dev

fmpz_mod_poly_hamming_weight

Synopsis#include <flint/fmpz_mod_poly.h>
slong fmpz_mod_poly_hamming_weight(const fmpz_mod_poly_t A, const fmpz_mod_ctx_t ctx)source

Returns the number of nonzero coefficients of A.

Cite this page

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