column-major order

Quick Reference

One way of mapping the elements of a two-dimensional array onto a vector, e.g. for representation in memory. If a two-dimensional array, A, with m rows and n columns is mapped in column-major order onto a vector b with m × n elements then aij = bk where k = m(j − 1) + i See also row-major order.

aij = bk

k = m(j − 1) + i

Subjects: Computing.

Reference entries