Looking back at https://travis-ci.org/shogun-toolbox/shogun/builds/13077405 , with a third one for uint32, it needs a fourth one for "long int"... or we make the index type a template argument of the function? Or we go for 4 versions.