SmallLongPermutation
Permutation over [0, size) backed by shuffled lookup tables.
Constructors
SmallLongPermutation
Properties
size
Functions
decodeUnchecked
decode without range checks. Out-of-domain input is unspecified and may not terminate.
encodeUnchecked
encode without range checks. Out-of-domain input is unspecified and may not terminate.
toString
Link copied to clipboard
Iterates encode(i) over the whole domain in index order.
Iterates encode(i) for unsigned indices i from offset, which must be in 0..size.
Link copied to clipboard
Returns a view of this permutation shifted onto range, which must hold exactly LongPermutation.size values. On an existing range view, replaces its range.
iterator
Iterates encode(i) for unsigned indices i from offset, which must be in 0..size.