https://hgpu.org/?p=18181
Automatic generation of CUDA code performing tensor manipulations using C++ expression templates