Eigenbasis Criterion for Diagonal Matrix Representations