perm: Lists permutations of a vector with distinct entries
Description
perm(v) lists permutations of a vector v with distinct entries.
The output is a matrix with each row a permutation.
It cannot distinguish identical permutations.
Usage
perm(v)
Value
an n! by n matrix with each row a permuation of the enties of v.