lexsort

  • full name: tenpy.tools.misc.lexsort

  • parent module: tenpy.tools.misc

  • type: function

tenpy.tools.misc.lexsort(a, axis=-1)[source]

wrapper around np.lexsort: allow for trivial case a.shape[0] = 0 without sorting