Yes, I agree that this name is confusing. I picked it just because `p` was already used in the code defining matrix dimensionality. Will change it to `dim`