pub fn bit_reverse_indices<T>(buffer: &mut [T])Expand description
Applies a bit-reversal permutation to elements in a slice using parallel iteration.
This function permutes the elements such that element at index i is moved to
index reverse_bits(i, log2(length)). The permutation is performed in-place
by swapping elements in parallel.
§Arguments
buffer- Mutable slice of elements to permute
§Panics
Panics if the buffer length is not a power of two.