CNS

Combinatorial number system encoder/decoder https://en.wikipedia.org/wiki/Combinatorial_number_system

struct CNS (
P
U
size_t N
U unpackedCard
bool lexicographic
bool multiset
alias binomialCalculator = ae.utils.math.combinatorics
) {}

Members

Aliases

Index
alias Index = P
Undocumented in source.

Static functions

pack
P pack(U[N] values)
Undocumented in source. Be warned that the author may not have intended to support it.
unpack
U[N] unpack(P packed)
Undocumented in source. Be warned that the author may not have intended to support it.

Static variables

packedCard
enum P packedCard;

Cardinality (maximum value plus one) of the packed representation

packedCard
enum P packedCard;
Undocumented in source.

Meta