F2PY: a tool for connecting Fortran and Python']Python programs

被引:183
作者
Peterson, Pearu [1 ]
机构
[1] Tallinn Univ Technol, Ctr Nonlinear Studies, Inst Cybernet, Akadeemia Tee 21, EE-12918 Tallinn, Estonia
关键词
high-performance scripting; Fortran; !text type='Python']Python[!/text; code generation; F2PY;
D O I
10.1504/IJCSE.2009.029165
中图分类号
TP39 [计算机的应用];
学科分类号
081203 ; 0835 ;
摘要
In this paper we tackle the problem of connecting low-level Fortran programs to high-level Python programs. The difficulties of mixed language programming between Fortran and C are resolved in an almost compiler and platform independent way. We provide a polished software tool F2PY that can (semi-) automatically build interfaces between the Python and Fortran languages and hence almost completely hide the difficulties from the target user: a research scientist who develops a computer model using a high-performance scripting approach.
引用
收藏
页码:296 / 305
页数:10
相关论文
共 7 条
[1]   Automated scientific software scripting with SWIG [J].
Beazley, DM .
FUTURE GENERATION COMPUTER SYSTEMS, 2003, 19 (05) :599-609
[2]   Python']Python for scientific computing [J].
Oliphant, Travis E. .
COMPUTING IN SCIENCE & ENGINEERING, 2007, 9 (03) :10-20
[3]   Scripting: Higher level programming for the 21st century [J].
Ousterhout, JK .
COMPUTER, 1998, 31 (03) :23-+
[4]  
Peterson P., 2001, P 9 INT PYTH C CDROM
[5]   Exposing Fortran derived types to C and other languages [J].
Pletzer, Alexander ;
McCune, Douglas ;
Muszala, Stefan ;
Vadlamani, Srinath ;
Kruger, Scott .
COMPUTING IN SCIENCE & ENGINEERING, 2008, 10 (04) :86-92
[6]   An empirical comparison of seven programming languages [J].
Prechelt, L .
COMPUTER, 2000, 33 (10) :23-+
[7]  
Wilson GV, 2006, AM SCI, V94, P5, DOI 10.1511/2006.1.5