Page 86, Exercise 3 Column Major Form
The addressing formula is: α + j·upper0 + i
where i is the row subscript, j is the column subscript and upper0 is the size of the first
dimension, that is, the number of rows.
| Address = Contents | Addressing Scheme |
[0] = [0][0] [1] = [1][0] [2] = [0][1] [3] = [1][1] [4] = [0][2] [5] = [1][2] |
0·2 + 0 = 0 0·2 + 1 = 1 1·2 + 0 = 2 1·2 + 1 = 3 2·2 + 0 = 4 2·2 + 1 = 5 |