From https://github.com/cms-patatrack/pixeltrack-standalone/pull/165#issuecomment-769199072: > * Add an helper function to directly handle thread/element indices in the `+= gridDimension` stride case.