Add permutation and factorial helpers to the base utilities
Add permutation and factorial helpers to the base utilities: a task in MiMo-V2.6-RL-harbor-code: MiMo-V2.6-RL Code (Harbor) (Harbor dataset). The inference code is about to grow support for exploring label assignments over small groups of variables, and for that it needs a couple of reusable…
The task
The inference code is about to grow support for exploring label assignments over small groups of variables, and for that it needs a couple of reusable combinatorics helpers. Please add them to the project's **base** utility library as free functions, exposed from a new header **`permutationsutil.h`**. Including that…
Part of FineEnvs/MiMo-V2.6-RL-harbor-code.