节点文献

Matlab与Fortran混合编程之DLL实现方法

Mixed language programming in Matlab and Fortran via dynamic link library

  • 推荐 CAJ下载
  • PDF下载
  • 不支持迅雷等下载工具,请取消加速工具后下载。

【作者】 潘克家汤井田郑洲顺

【Author】 PAN Kejia1,2,3,TANG Jingtian1,ZHENG Zhoushun2 1.School of Geosciences and Info-Physics,Central South University,Changsha 410083,China2.School of Mathematical Sciences and Computing Technology,Central South University,Changsha 410083,China3.HPCSIP Key Laboratory,Ministry of Education,Changsha 410081,China

【机构】 中南大学地球科学与信息物理学院中南大学数学科学与计算技术学院高性能计算与随机信息处理教育部重点实验室

【摘要】 简要介绍Matlab和Fortran各自的优缺点,详细阐述Matlab调用Fortran生成的动态链接库实现混合编程的两种方法。以高斯约当列主元素法求逆为例,从计算时间、精度等方面详细比较了同一算法在多种实现方式下的执行情况。计算结果表明:基于动态链接库的混合编程方法能充分利用现有软件包,结合Fortran计算效率高、Matlab矩阵计算及图形处理功能强的优点,符合当前科学工程计算程序设计的发展方向。

【Abstract】 The advantages and disadvantages of Matlab and Fortran is briefly introduced in this article.And two methods of mixed language programming through calling Fortran dynamic link library from Matlab are discussed in detail.Take Gauss-Jordan elimination with partial pivoting for example,the computational results of the same algorithm under a variety of different implementation ways are carefully compared in terms of accuracy and computational time.The result indicatesthat,mixed language programming via dynamic link library can make full of existing packages,combine high efficiency of Fortran with powerful matrix computation and figure drawing and compiling functions of Matlab,thus conforming to the current development direction of programming in scientific and engineering computing.

【基金】 国家高技术研究发展计划(863)(No.2007AA06Z134);国家重点基础研究发展规划(973)(No.2011CB606306);中南大学自由探索计划(No.2011QNZT102);中南大学博士后科学基金~~
  • 【文献出处】 计算机工程与应用 ,Computer Engineering and Applications , 编辑部邮箱 ,2011年31期
  • 【分类号】TP311.11
  • 【被引频次】12
  • 【下载频次】778
节点文献中: 

本文链接的文献网络图示:

本文的引文网络