A MATLAB-Based Code Generator for Sparse Matrix Computations
A MATLAB-Based Code Generator for Sparse Matrix Computations
复制标题
基于 MATLAB 的稀疏矩阵计算代码生成器
DOI:
10.1007/978-3-540-30477-7_19
复制
发表时间:
2004
期刊:
影响因子:
--
通讯作者:
T. Kitamura
中科院分区:
文献类型:
--
作者:
Hideyuki Kawabata;Mutsumi Suzuki;T. Kitamura
We present a matrix language compiler CMC which translates annotated MATLAB scripts into Fortran 90 programs. Distinguishing features of CMC include its applicability to programs with sparse matrix computations and its capability of source-level optimization in MATLAB language. Different from other existing similar translators, CMC has an ability to generate codes based on information on the shape of matrices such as triangular and diagonal. Integrating these functionalities, CMC provides the user with a simple way to develop fast large-scale numerical computation codes beyond prototyping. Experimental results show that the programs of SOR and CG methods generated by CMC can run several times as fast as the original MATLAB scripts.