Generates all permutations of a given embedding dimension, ordered according to the Lehmer coding scheme.

1 | ```
generate_lehmerperm_matrix(ndemb)
``` |

`ndemb` |
The embedding dimension. |

This function converts ranks to indices and back.

A numeric matrix that contains the Lehmer permutation pattern.

Sebastian Sippel

http://www.keithschwarz.com/interesting/code/?dir=factoradic-permutation

Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.

All documentation is copyright its authors; we didn't write any of that.