row-major order

views updated

row-major order One way of mapping the elements of a two-dimensional array onto a vector. If a two-dimensional array, A, with m rows and n columns is mapped in row-major order onto a vector b with mn elements then aij = bk where k = n(i – 1) + j

See also column-major order.