generate_lehmerperm_matrix function

A function to generate the Lehmer permutation ordering.

A function to generate the Lehmer permutation ordering.

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

generate_lehmerperm_matrix(ndemb)

Arguments

  • ndemb: The embedding dimension.

Returns

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

Author(s)

Sebastian Sippel

  • Maintainer: Sebastian Sippel
  • License: GPL-2
  • Last published: 2019-10-28

Useful links