Use idx_t for strides