Expand description
Implements BitPackedVector, a version of an immutable vector optimized for
storing field elements compactly.
Structs§
- BitPacked
Iterator - Iterator for a
BitPackedVector. SeeBitPackedVector::iterfor generating one. - BitPacked
Vector 🔒 - A space-efficient representation of an immutable vector of prime field
elements. Particularly useful when all elements have values close to each
other. It provides an interface similar to that of a
Vec.
Functions§
- num_
bits - Returns the minimum numbers of bits required to represent prime field
elements in the range
[0, n]. This is equivalent to computingceil(log_2(n+1)).