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