简介
数值编程语言,支持多维数组、切片、整体数组运算,以及可以显式指定的下标范围。
使用这门语言的成员
参与的讨论
A slow gfortran loop that copied an array section on every call
A loop over the rows of a matrix, calling a subroutine with the row a(i, :) on every iteration. Right answer, embarrassing sp…
Column-major loop order in Fortran
Fortran arrays are column-major. a(i,j) and a(i+1,j) are neighbours in memory. a(i,j+1) is a whole column away. So the loop n…
f2py copies my C-ordered array on every call
Passing a NumPy array into a Fortran subroutine through f2py. The array is created the usual way, np.zeros((n, m)), so it's C…