This is the mail archive of the
gsl-discuss@sources.redhat.com
mailing list for the GSL project.
row major order versus column major order
- To: gsl-discuss at sources dot redhat dot com
- Subject: row major order versus column major order
- From: "E. Robert Tisdale" <edwin at netwood dot net>
- Date: Thu, 20 Jul 2000 06:58:28 +0000
The only difference between multidimensional Fortran and C arrays
is the order in which the subscripts appear.
Fortran multidimensional array subscripts appear in order
from least to most significant and C multidimensional array subscripts
appear in reverse order from most to least significant so that
A(i1, i2, ..., iN) == A[1+iN]...[1+i2][1+i1]