article

Converting 2D arrays to 1D and accessing as either 2D or 1D

This article shows how you can store 2D data in a 1D array using row-major order and convert locations between the two.

avatar
Richard Moss