bit::polynomial — Coefficient Counts

We have methods to count the number of ones and zeros in the vector of polynomial coefficients.

1constexpr std::size_t count0() const;
2constexpr std::size_t count1() const;
1
Returns the number of zero coefficients in the polynomial.
2
Returns the number of one coefficients in the polynomial.

See Also

polynomial::size
polynomial::empty
vector::count

Back to top