Expand description
Bijective functions.
See also the binary_search
module.
Structs§
- Super
Vec - Returns a constant value for all indices greater than the length of the internall stored vector.
Traits§
Functions§
- compose_
f_ after_ g - Returns
[ g[f[ 0 ]] .. g[f[ f.len() ]] ]
- inverse_
perm - Given a vector of length
n+1
representing a permutation on {0, .., n}, returns a vector that represents the inverse permutation. - sort_
perm - Returns a permutation that sorts the elements of the vector.
- sort_
perm_ by - Returns a permutation that sorts the elements of the vector according to given comparison function.
- sort_
perm_ by_ key - Returns a permutation that sorts the elements of the vector according to a key.