4 ms·
Fortran did it: A 2-dimensional array A will, in the object program, be stored sequentially in the order Ai,i, A2,i Am l , A| i2 , A2f2 Am, 2> , Am,„.
by ReleaseCandidat 3y ago
Fortran did it:
A 2-dimensional array A will, in the object program, be stored sequentially in
the order Ai,i, A2,i Am l , A| i2 , A2f2 Am, 2> , Am,„. Thus
it is stored “columnwise”, with the first of its subscripts varying most
rapidly, and the last varying least rapidly. The same is true of 3-dimensional arrays.
1 -dimensional arrays are of course simply stored sequentially. All arrays are stored backwards in storage; i.e. the above sequence is in the order of decreasing absolute location.
https://ia800807.us.archive.org/0/items/history-of-fortran/Image072217151026_text.pdf https://ia800807.us.archive.org/0/items/history-of-fortran/I...