if negative, result will automatically infer size
if negative, result will automatically infer size
This is basically an unsorted coordinate matrix.