https://hgpu.org/?p=6124
Rapid Performance of a Generalized Distance Calculation