This function reverses the elements of the permutation p.
This function computes the inverse of the permutation p, storing the result in inv.
This function advances the permutation p to the next permutation
in lexicographic order and returns
GSL_SUCCESS. If no further
permutations are available it returns
GSL_FAILURE and leaves
p unmodified. Starting with the identity permutation and
repeatedly applying this function will iterate through all possible
permutations of a given order.
This function steps backwards from the permutation p to the
previous permutation in lexicographic order, returning
GSL_SUCCESS. If no previous permutation is available it returns
GSL_FAILURE and leaves p unmodified.