enumerate_permutations
enumerate_permutations(perm, cycle_orders=None):
LLM Docstring
Enumerate the cyclic powers of a permutation (the subgroup it generates).
Repeatedly composes the permutation with itself, producing one array per power up to its order. Batched inputs are handled per structure.
perm:np.ndarraythe permutation(s)
cycle_orders:int | np.ndarray | Noneprecomputed order(s) (computed if omitted)
:returns:np.ndarray | listthe generated permutations (a stack, or a per-structure list)