Spectral decomposition for transitive matrices