Skip to main content

static_inverse_indices

Function static_inverse_indices 

Source
pub fn static_inverse_indices<const N: usize>(
    indices: &[usize; N],
) -> [usize; N]
Expand description

Returns the inverse of a reordering produced by static_sorted_indices.

If indices[sorted_position] == original_position, the returned array maps original_position back to sorted_position.