A class of integral identities with matrix argument