Matrix Template Library
The Matrix Template Library (MTL) is a linear algebra library for C++ programs.[src] The MTL uses template programming, which considerably reduces the code length.[src] All matrices and vectors are available in all classical numerical formats: float , double , complex or complex .[src] Furthermore, generic programming allows the usage of arbitrary types as long as they provide the necessary operations.[src] For instance one can use arbitrary integer formats (e.g.[src] unsigned short ), types for interval arithmetic (e.g.[src] boost::interval) from the Boost C++ Libraries, quaternions (e.g.[src] boost::quaternion), types of higher precision (e.g.[src] GNU Multi-Precision Library) and appropriate user-defined types.[src] The MTL supports several implementations of dense matrices and sparse matrices.[src] MTL2 has been developed by Jeremy Siek and Andrew Lumsdaine.[src] The latest version, MTL4, is developed by Peter Gottschling and Andrew Lumsdaine.[src] It contains most of MTL2's functionality and adds new optimization techniques as meta-tuning, e.g.[src] loop unrolling of dynamically sized containers can be specified in the function call.[src] Platform-independent performance scalability is reached by recursive data structures and algorithms.[src] Generic applications can be written in a natural notation, e.g.[src] v += A*q - w; , while the library dispatches to the appropriate algorithms: matrix vector products vs.[src] matrix products vs.…[src]
The Matrix Template Library (MTL) is a linear algebra library for C++ programs.[src] The MTL uses template programming, which considerably reduces the code length.[src] All matrices and vectors are available in all classical numerical formats: float , double , complex or complex .[src] Furthermore, generic programming allows the usage of arbitrary types as long as they provide the necessary operations.[src] For instance one can use arbitrary integer formats (e.g.[src] unsigned short ), types for interval arithmetic (e.g.[src] boost::interval) from the Boost C++ Libraries, quaternions (e.g.[src] boost::quaternion), types of higher precision (e.g.[src] GNU Multi-Precision Library) and appropriate user-defined types.[src] The MTL supports several implementations of dense matrices and sparse matrices.[src] MTL2 has been developed by Jeremy Siek and Andrew Lumsdaine.[src] The latest version, MTL4, is developed by Peter Gottschling and Andrew Lumsdaine.[src] It contains most of MTL2's functionality and adds new optimization techniques as meta-tuning, e.g.[src] loop unrolling of dynamically sized containers can be specified in the function call.[src] Platform-independent performance scalability is reached by recursive data structures and algorithms.[src] Generic applications can be written in a natural notation, e.g.[src] v += A*q - w; , while the library dispatches to the appropriate algorithms: matrix vector products vs.[src] matrix products vs.[src] vector scalar products etcetera.[src] The goal is to encapsulate performance issues inside the library and provide scientists an intuitive interface.[src] MTL4 is used in different finite element and finite volume packages, e.g.[src] the FEniCS Project.[src]
40 sentences · 40 cited inline · 0 references stored
References
No reference rows published for this article.
Cite this article
MLA
"Matrix Template Library." encyclopegia.org, 2026, https://encyclopegia.org/wiki/matrix-template-library. Accessed 06 December 2026.
Chicago
"Matrix Template Library." encyclopegia.org. Accessed December 6, 2026. https://encyclopegia.org/wiki/matrix-template-library.
APA
encyclopegia.org. (2026). Matrix Template Library. Retrieved December 6, 2026, from https://encyclopegia.org/wiki/matrix-template-library
Accessed December 6, 2026 · CC BY-SA 4.0 · citation page · JSON