On direct product matrices