generate_lehmerperm_matrix: A function to generate the Lehmer permutation ordering.
Description
Generates all permutations of a given embedding dimension, ordered according to the Lehmer coding scheme.
Usage
generate_lehmerperm_matrix(ndemb)
Value
A numeric matrix that contains the Lehmer permutation pattern.
Details
This function converts ranks to indices and back.
References
http://www.keithschwarz.com/interesting/code/?dir=factoradic-permutation