Matrix iteration.