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.ndarray

    the permutation(s)

  • cycle_orders: int | np.ndarray | None

    precomputed order(s) (computed if omitted)

  • :returns: np.ndarray | list

    the generated permutations (a stack, or a per-structure list)


Feedback

Examples

Templates

Documentation