Expand description
Dimension fusion logic ported from Strided.jl/src/mapreduce.jl
This module implements the core dimension fusion algorithm that merges contiguous dimensions to reduce iteration complexity.
Functions§
- compress_
dims - Remove size-1 dimensions from fused dims and all corresponding strides.
- compute_
costs - Compute the minimum stride cost for each dimension.
- compute_
importance - Compute the “importance” of each dimension for loop ordering.
- fuse_
dims - Fuse contiguous dimensions across multiple arrays.
- fuse_
dims_ bilateral - Bilateral dimension fusion for src + dst stride patterns.
- sort_
by_ importance - Get the permutation that sorts by importance (descending).