in reply to column major or row major.

Neither. Arrays are just arrays (and hopefully sequential in memory).

If you implement a matrix as an array of arrays, it can be either row or column major, depending on whether you define the first index to be a row or a column index.

Replies are listed 'Best First'.
Re^2: column major or row major.
by JavaFan (Canon) on Aug 09, 2009 at 14:25 UTC
    Arrays are just arrays (and hopefully sequential in memory).
    There's some part of the array that is sequential in memory, and that's the "C" array containing pointers to the SVs holding the structures holding the values of the elements. The SVs themselves could be anywhere.