Clock and shift matrices