https://hgpu.org/?p=2839
Hypercubic Storage Layout and Transforms in Arbitrary Dimensions using GPUs and CUDA