The last stable release of the standalone Gmm++ library can be found in the download page of GetFEM++.
Gmm++ is a
generic C++ template library for sparse, dense and skyline
matrices. It is a set of generic algorithms (mult, add,
copy, sub-matrices, dense and sparse solvers ...) for any
interfaced vector type or matrix type. It can be view as a glue
library allowing cooperation between several vector and matrix
types. However, basic sparse, dense and skyline matrix/vector types are built
in Gmm++, hence it can be used as a standalone linear algebra
Interfacing a vector or matrix type means writing "traits" objects called
linalg_traits", which describe their properties. The library
offers predefined dense, sparse and skyline matrix types.
The goal is to create a general, adaptable and easy to use
framework of pre-defined methods for matrix computation. When a
vector or a matrix type has been interfaced (i.e. its
linalg_traits has been filled), all generic algorithms works on
it. However, it is always possible (and easy) to specialize some
generic algorithms for efficiency reason. Major generic
The structure of Gmm++ is largely inspired from MTL. The major differences are : simpler use, built as an interface for existing matrix types, sub-matrices for any matrix types. The efficiency is comparable (see http://grh.mur.at/misc/sparselib_benchmark/ for instance).
NOTE : For performance reason, an interface with LAPACK or ATLAS is provided for dense matrices. See the documentation (if you make some benchmarks, do not forget to use optimization compiler options, at least -O3 and you should disable checks with -dNDEBUG).
A small interface to SuperLU 3.0 (sparse matrix direct solver) is also proposed for sparse matrices.
Gmm++ has been tested with QD an efficient library for double double and quadruple double precision. See on the documentation how to link QD. This means that Gmm++ should work with any reasonable arbitrary precision floating point library.
Gmm++ offers a framework to develop efficient methods for linear algebra. This library is and will remain open-source. Here are some examples of possible extensions:
Yves Renard, Julien Pommier, Michel Fournie (Additive Schwarz), Benjamin Schleimer (least square CG).
Many thanks to Jeremy G. Siek and Lie-Quan Lee for their nice work developing MTL-ITL on which Gmm++ is greatly inspired.
A problem with generic programming is to be sure that every configuration has been fully tested. This is why there is now a random generator of tests. This means that a number of test procedures will be called with random parameters, i.e. random type of vector, sub-vector, matrix or sub-matrix types, with random base type (float, double, long double, std::complex<float>, std::complex<double>, dd_real ...) and random size and filling, testing all the possibilities of mixing formats in operations such as mult, add ...
You are encouraged to test them, runing a "make check" on the distribution of Gmm++ and sending us a bug report if it fails. We will also appreciate if you send us new test procedures.