DocumentCode :
2235560
Title :
A Dimension Abstraction Approach to Vectorization in Matlab
Author :
Birkbeck, Neil ; Lévesque, Jonathan ; Amaral, José Nelson
Author_Institution :
Alberta Univ., Edmonton, Alta.
fYear :
2007
fDate :
11-14 March 2007
Firstpage :
115
Lastpage :
130
Abstract :
Matlab is a matrix-processing language that offers very efficient built-in operations for data organized in arrays. However Matlab operation is slow when the program accesses data through interpreted loops. Often during the development of a Matlab application writing loop-based code is more intuitive than crafting the data organization into arrays. Furthermore, many Matlab users do not command the linear algebra expertise necessary to write efficient code. Thus loop-based Matlab coding is a fairly common practice. This paper presents a tool that automatically converts loop-based Matlab code into equivalent array-based form and built-in Matlab constructs. Array-based code is produced by checking the input and output dimensions of equations within loops, and by transposing terms when necessary to generate correct code. This paper also describes an extensible loop pattern database that allows user-defined patterns to be discovered and replaced by more efficient Matlab routines that perform the same computation. The safe conversion of loop-based into more efficient array-based code is made possible by the introduction of a new abstract representation for dimensions
Keywords :
linear algebra; mathematics computing; program control structures; Matlab vectorization; built-in operations; data access; data organization; dimension abstraction; interpreted loops; linear algebra; loop-based Matlab coding; loop-based code; matrix-processing language; Application software; Computer languages; Data engineering; Databases; Equations; High level languages; Linear algebra; Mathematical model; Programming profession; Writing;
fLanguage :
English
Publisher :
ieee
Conference_Titel :
Code Generation and Optimization, 2007. CGO '07. International Symposium on
Conference_Location :
San Jose, CA
Print_ISBN :
0-7695-2764-7
Type :
conf
DOI :
10.1109/CGO.2007.1
Filename :
4145109
Link To Document :
بازگشت