Pattern rule generation NeoMatrix

Try googling "array stride"