pls use shogun types. index_t, int32_t