Closed
Description
Implementation: https://github.com/certik/fortran-utils/blob/b43bd24cd421509a5bc6d3b9c3eeae8ce856ed88/src/utils.f90#L176
The interface is compatible with NumPy (e.g., you can do savetxt
from Fortran and do loadtxt
from NumPy and it just works, and vice versa).
The loadtxt
has the argument as allocatable, intent(out)
, because you typically do not know the size of the matrix ahead of time.