where v 0 and v N +1 are vectors of dimension p and the p × p matrices W k are the so-called transfer matrices. In some cases, particularly for systems with periodic boundary conditions, the partition function may be written more simply as