[Numpy-discussion] C vs. Fortran order -- misleading documentation?

Pavel Bazant MaxPlanck@seznam...
Mon Jun 7 06:52:49 CDT 2010


Correct me if I am wrong, but the paragraph

Note to those used to IDL or Fortran memory order as it relates to indexing. Numpy uses C-order indexing. That means that the last index usually (see xxx for exceptions) represents the most rapidly changing memory location, unlike Fortran or IDL, where the first index represents the most rapidly changing location in memory. This difference represents a great potential for confusion.

in 

http://docs.scipy.org/doc/numpy/user/basics.indexing.html

is quite misleading, as C-order means that the last index changes rapidly, not the
memory location.

Pavel


More information about the NumPy-Discussion mailing list