Skip to main content

Module permute

Module permute 

Source
Expand description

Contains the utility functions permute::permute() and permute::permute_inv() for applying permutations VectorViewMuts.

Functionsยง

permuteunstable-enable
Computes values_new[i] = values[perm(i)].
permute_invunstable-enable
Computes values_new[perm(i)] = values[i]. This is the inverse operation to permute().
permute_inv_using_allocatorunstable-enable
Computes values_new[perm(i)] = values[i]. This is the inverse operation to permute().
permute_using_allocatorunstable-enable
Computes values_new[i] = values[perm(i)].