由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Computation版 - Fortran 和 C的区别? (转载)
相关主题
matlab改成C++,还用了号称史上最快的fftw,结果慢了一倍help on interface for Matlab and Fortran
emergency: two ACM transactionsRe: help on interface for Matlab and For
icc complier is expensive yar~~How to write a User Interface?
偶也问一fortran问题[合集] 有关fortran返回数组的问题!
Fortran code optimization哪里有Fortran教程可下?
谁给说说fortran的几个标准where to down a standard Fortran90 complier?
有人用过Matlab的Compiler吗?或者是否有什么工具能把Matlab程序转成C, C++?Include unix libraries in windows fortran
谁能推荐一个c++ optimization的librarymy experience,Re: 我也及问一个问题
相关话题的讨论汇总
话题: fortran话题: 区别话题: however话题: libraries话题: functions
进入Computation版参与讨论
1 (共1页)
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
5
上面的人弱就弱在嘴巴没有你大。。
1 (共1页)
进入Computation版参与讨论
相关主题
my experience,Re: 我也及问一个问题Fortran code optimization
[转载] unix下编译fortran 的错误太多,看不到怎么办?谁给说说fortran的几个标准
visual fortran区别6位以上的变量名吗?有人用过Matlab的Compiler吗?或者是否有什么工具能把Matlab程序转成C, C++?
Re: f90 and mpi谁能推荐一个c++ optimization的library
matlab改成C++,还用了号称史上最快的fftw,结果慢了一倍help on interface for Matlab and Fortran
emergency: two ACM transactionsRe: help on interface for Matlab and For
icc complier is expensive yar~~How to write a User Interface?
偶也问一fortran问题[合集] 有关fortran返回数组的问题!
相关话题的讨论汇总
话题: fortran话题: 区别话题: however话题: libraries话题: functions