radtools.get_permutation#

radtools.get_permutation(n, k)[source]#

Return array of index permutations

Added in version 0.7.

Parameters:
nint

Length of the array to be permuted.

range(0, n)
kint

Length of the permutation.

Returns:
permutationslist

List of permutations. If N permutations are found, the it is a list of N lists of length k.