Categorical Diagonalization