permutation_indices
permutation_indices(n, r, dtype=<class 'int'>):
LLM Docstring
Enumerate all length-r ordered permutations of range(n) as an index array.
n:intsize of the pool
r:intlength of each permutation
dtype:np.dtypeindex dtype
:returns:np.ndarraythe
(n!/(n-r)!, r)permutation-index array