restricted loop to stay in matrix dimension boundaries. should make no difference but remove compiler warning
Merge pull request #1121 from cbaus/hijing-iteration-fix

Generator fixes -- hijing: restricted loop to stay in matrix dimension boundaries.