A class of positive semidefinite matrices