Hamming weight (source code)

= Hamming weight
{c}
{title2=$\operatorname{wt}$}
{wiki}

The Hamming weight $\operatorname{wt}(x)$ of a word is the number of its nonzero coordinates.