Next: Applying Permutations, Previous: Permutation properties, Up: Permutations
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 returnsGSL_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.