Input/output arrays (2)

F2PY generated modules has a function for checking if an array has column major storage (i.e., Fortran storage):
>>> a = zeros((n,n), order='Fortran')
>>> isfortran(a)
True
>>> a = asarray(a, order='C')  # back to C storage
>>> isfortran(a)
False

previousnexttable of contents