cast this to int64_t - matrices might be way bigger than 2GB