Cython: The Best of Both Worlds

被引:757
作者
Behnel, Stefan [1 ]
Bradshaw, Robert [2 ]
Citro, Craig [2 ]
Dalcin, Lisandro [3 ]
Seljebotn, Dag Sverre [4 ]
Smith, Kurt [5 ]
机构
[1] Senacor Technol AG, Nurnberg, Germany
[2] Google, Mountain View, CA USA
[3] Natl Council Sci & Technol Res, Buenos Aires, DF, Argentina
[4] Univ Oslo, Inst Theoret Astrophys, N-0316 Oslo, Norway
[5] Univ Wisconsin Madison, Dept Phys, Madison, WI USA
基金
美国国家科学基金会;
关键词
Cython; numerics; !text type='Python']Python[!/text; scientific computing;
D O I
10.1109/MCSE.2010.118
中图分类号
TP39 [计算机的应用];
学科分类号
081203 ; 0835 ;
摘要
Cython is a Python language extension that allows explicit type declarations and is compiled directly to C. As such, it addresses Python's large overhead for numerical loops and the difficulty of efficiently using existing C and Fortran code, which Cython can interact with natively.
引用
收藏
页码:31 / 39
页数:9
相关论文
共 5 条
[1]   WHY MODERN CPUS ARE STARVING AND WHAT CAN BE DONE ABOUT IT [J].
Alted, Francesc .
COMPUTING IN SCIENCE & ENGINEERING, 2010, 12 (02) :68-71
[2]  
[Anonymous], 2010, P 9 PYTH SCI C SCIPY
[3]  
BEHNEL S, 2009, P 8 PYTH SCI C SCIPY
[4]  
SELJEBOTN DS, 2009, P 8 PYTH SCI C SCIPY
[5]   The NumPy Array: A Structure for Efficient Numerical Computation [J].
van der Walt, Stefan ;
Colbert, S. Chris ;
Varoquaux, Gael .
COMPUTING IN SCIENCE & ENGINEERING, 2011, 13 (02) :22-30