Help converting 2d matrix coordinates to 1d array

Printable View