ajdmom.utils.multilevel_index

ajdmom.utils.multilevel_index(n, m, show=False)[source]

get the indexes of multiple summation

Parameters:
  • n (int) – levels of the multiple summation, >= 1

  • m (int) – number of possibilities in each summation, >= 1

  • show (bool) – whether show the process or not, default to False

Returns:

list of the multi-level indexes.

Return type:

list