ajdmom.utils.multilevel_comb

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

get the indexes of multiple level combination

Parameters:
  • n (int) – parts to split the number

  • m (int) – total number resource

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

Returns:

list of the multiple level combination indexes

Returns:

list