Creates a Permutation from an array of preimages of range(N).
Parameters:
permutation (Union[ndarray, Array]) – 1D array listing \(g^{-1}(x)\) for all \(0\le x < N\)
(i.e., V[permutation] permutes the elements of V as desired)
name (Optional[str]) – optional, custom name for the permutation
Returns:
a Permutation object encoding the same permutation