A

The Linear Algebra Mapping Problem. Current State of Linear Algebra Languages and Libraries

ACM Transactions on Mathematical Software, vol. 48, pp. 1–30

Abstract

We observe a disconnect between developers and end-users of linear algebra libraries. On the one hand, developers invest significant effort in creating sophisticated numerical kernels. On the other hand, end-users are progressively less likely to go through the time consuming process of directly using said kernels; instead, languages and libraries, which offer a higher level of abstraction, are becoming increasingly popular. These languages offer mechanisms that internally map the input program to lower level kernels. Unfortunately, our experience suggests that, in terms of performance, this translation is typically suboptimal. In this paper, we define the problem of mapping a linear algebra expression to a set of available building blocks as the“Linear Algebra Mapping Problem” (LAMP); we discuss its NP-complete nature, and investigate how effectively a benchmark of test problems is solved by popular high-level programming languages and libraries. Specifically, we consider Matlab, Octave, Julia, R, Armadillo (C++), Eigen (C++), and NumPy (Python); the benchmark is meant to test both compiler optimizations, as well as linear algebra specific optimizations, such as the optimal parenthesization of matrix products. The aim of this study is to facilitate the development of languages and libraries that support linear algebra computations.

Authors 3

  1. RWTH Aachen University

    Affiliation as printed

    RWTH Aachen University, North Rhine-Westphalia, Germany

  2. RWTH Aachen University

    Affiliation as printed

    RWTH Aachen University, North Rhine-Westphalia, Germany

  3. Umeå University

    Affiliation as printed

    Umeå Universitet, Umeå, Sweden

Cited by 15 stored of 15

15 results

No patents citing this paper on Lens.org (checked 2026-10-06).

References 83