powered by
Returns all possible permutations given the number of elements.
perms(n)
Returns a matrix containing all possible permutations.
Number of elements.
Volodymyr Melnykov, Wei-Chen Chen, and Ranjan Maitra.
ClassProp.
ClassProp
perms(3)
Run the code above in your browser using DataLab