pub fn invert_permutation_vector<S: Data<Elem = usize>>( perm: &ArrayBase<S, Ix1>, ) -> Array1<usize>
Compute the inverse of a permutation vector. If a[i] = j then the inverse vector has inv[j] = i