Expand description
Permutations of {0, ..., n-1} in lexicographic order, with Lehmer-code
rank/unrank.
Structs§
- Permutation
Iter - Iterator over permutations of
{0, ..., n-1}in lexicographic order.
Functions§
- permutation_
rank - The Lehmer-code (lexicographic) rank of
perm. - permutation_
unrank - The permutation of
{0, ..., n-1}at lexicographic ordinalrank. - permutations
- Construct a permutation iterator over
{0, ..., n-1}.