Ask a Question

Write Short Note on Array row/column major ordering.

on 2011-05-12 23:52:34   by Sangram   on MCA  3 answers

Swati

on 2011-05-13 09:30:00  

In computing, row-major order and column-major order describe methods for storing multidimensional arrays in linear memory. Following standard matrix notation, rows are identified by the first index of a two-dimensional array and columns by the second index. Array layout is critical for correctly passing arrays between programs written in different languages. It is also important for performance when traversing an array because accessing array elements that are contiguous in memory is usually faster than accessing elements which are not, due to caching. Row-major order is used in C; column-major order is used in Fortran and MATLAB.

Swati

on 2011-05-13 09:30:00  

In computing, row-major order and column-major order describe methods for storing multidimensional arrays in linear memory. Following standard matrix notation, rows are identified by the first index of a two-dimensional array and columns by the second index. Array layout is critical for correctly passing arrays between programs written in different languages. It is also important for performance when traversing an array because accessing array elements that are contiguous in memory is usually faster than accessing elements which are not, due to caching. Row-major order is used in C; column-major order is used in Fortran and MATLAB.

Sangram

on 2011-06-07 09:30:00  

Thanks Swati....