Jump to content

Matrix Template Library

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Yasmina Megzari (talk | contribs) at 11:01, 11 February 2009. The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

The Matrix Template Library (MTL) is a linear algebra library for C++ programs.

The MTL uses template programming, which considerably reduces the code length. All matrices are available as float, double, complex<float> or complex<double>. The MTL supports several implementations of dense matrices and sparse matrices. MTL2 has been developed by Jeremy Siek and Andrew Lumsdaine.

The latest version MTL4 is developed by Peter Gottschling and Andrew Lumsdaine. It contains most of MTL2's functionality and adds new optimization techniques as meta-tuning, e.g. loop unrolling of dynamically sized containers can be specified in the function call. Generic applications can be written in a natural notation, e.g. v += A*q - w;, while the library dispatches to the appropriate algorithms: matrix vector products vs. matrix products vs. vector scalar products ecetera. The goal is to encapsulate performance issues inside the library and provide scientists an intuitive interface.

See also

  • Boost uBLAS, an alternative linear algebra library for C++