t********n 发帖数: 1524 | 1 【 以下文字转载自 Mathematics 讨论区 】
发信人: thrivechen (得陇望蜀), 信区: Mathematics
标 题: Fortan 和 C的区别?
发信站: BBS 未名空间站 (Mon Feb 2 11:24:10 2009)
同样的程序,分别用Fortran和C写
然后在同样的机器上算
Fortran是不是更快?
大概快多少,有人有经验吗? | l******n 发帖数: 1683 | 2 印象中有文章说总体来说快10%的样子. 其实用什么语言不重要, 关键一是算法, 二是
有没有相关的好用的函数库.
【在 t********n 的大作中提到】 : 【 以下文字转载自 Mathematics 讨论区 】 : 发信人: thrivechen (得陇望蜀), 信区: Mathematics : 标 题: Fortan 和 C的区别? : 发信站: BBS 未名空间站 (Mon Feb 2 11:24:10 2009) : 同样的程序,分别用Fortran和C写 : 然后在同样的机器上算 : Fortran是不是更快? : 大概快多少,有人有经验吗?
| O******e 发帖数: 734 | 3 Most of the major Fortran compiler vendors provide highly
optimized math libraries. However, these libraries often
provide both Fortran and C calling interfaces, so the
language that you use might not matter too much. Sometimes,
however, you could call certain functions conveniently using
standard Fortran 9x language features, especially using of
the F9x array syntax to access vector/parallel functions in
a portable manner which you cannot do portably in C. But if
you do not understand the in
【在 t********n 的大作中提到】 : 【 以下文字转载自 Mathematics 讨论区 】 : 发信人: thrivechen (得陇望蜀), 信区: Mathematics : 标 题: Fortan 和 C的区别? : 发信站: BBS 未名空间站 (Mon Feb 2 11:24:10 2009) : 同样的程序,分别用Fortran和C写 : 然后在同样的机器上算 : Fortran是不是更快? : 大概快多少,有人有经验吗?
| c****w 发帖数: 565 | 4
could you please explain a bit about your mentioned portability? Thanks a
lot.
【在 O******e 的大作中提到】 : Most of the major Fortran compiler vendors provide highly : optimized math libraries. However, these libraries often : provide both Fortran and C calling interfaces, so the : language that you use might not matter too much. Sometimes, : however, you could call certain functions conveniently using : standard Fortran 9x language features, especially using of : the F9x array syntax to access vector/parallel functions in : a portable manner which you cannot do portably in C. But if : you do not understand the in
| n******t 发帖数: 4406 | |
|