generalized covariance matrices