The generalized partial correlation matrix