| | |
Summary: A Dimension Abstraction Approach to Vectorization in Matlab
Neil Birkbeck Jonathan L´evesque
University of Alberta
Edmonton Alberta, Canada T6G 2E1
{birkbeck,jrl2,amaral}@cs.ualberta.ca
Jos´e Nelson Amaral
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 ac-
cesses 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 com-
mand the linear algebra expertise necessary to write ef-
ficient code. Thus loop-based Matlab coding is a fairly
common practice. This paper presents a tool that auto-
matically 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
|