Expand description
Shared helpers (permutation inversion, multi-index iteration, dimension fusion). Shared helpers for strided-einsum2.
Structs§
- Multi
Index - Iterator over multi-dimensional index tuples within given dimensions.
Functions§
- invert_
perm - Invert a permutation: if
perm[i] = j, thenresult[j] = i. - try_
fuse_ group - Try to fuse a contiguous dimension group into a single (total_size, innermost_stride).