Eigen is a free and open source, cross-platform C++ template library for linear algebra: vectors, matrices, and related algorithms.
Here are some key features of "Eigen":
Versatile. (See modules and tutorial). Eigen handles, without code duplication, and in a completely integrated way:
· both fixed-size and dynamic-size matrices and vectors.
· both dense and sparse (the latter is still experimental) matrices and vectors.
· both plain matrices/vectors and abstract expressions.
· both column-major (the default) and row-major matrix storage.
· both basic matrix/vector manipulation and many more advanced, specialized modules providing algorithms for linear algebra, geometry, quaternions, or advanced array manipulation.
· various numeric types out of the box, including std::complex numbers, while being easy to extend to custom numeric types.
· Fast. (See benchmark).
· Expression templates allow to intelligently remove temporaries and enable lazy evaluation, when that is appropriate -- Eigen takes care of this automatically and handles aliasing too in most cases.
· Explicit vectorization is performed for the SSE (2 and later) and AltiVec instruction sets, with graceful fallback to non-vectorized code. Expression templates allow to perform these optimizations globally for whole expressions.
· With fixed-size objects, dynamic memory allocation is avoided, and the loops are unrolled when that makes sense.
· For large matrices, special attention is paid to cache-friendliness.
· Elegant. (See API showcase). The API is extremely clean and expressive, thanks to expression templates. Implementing an algorithm on top of Eigen feels like just copying pseudocode. You can use complex expressions and still rely on Eigen to produce optimized code: there is no need for you to manually decompose expressions into small steps.
· Compiler-friendy. Eigen has very reasonable compilation times at least with GCC, compared to other C++ libraries based on expression templates and heavy metaprogramming. Eigen is also standard C++ and supports various compilers.
What's New in This Release: [ read full changelog ]
· Bug 417 - fix nesting of Map expressions
· Bug 415 - fix return value of Rotation2D::operator*=
· Bug 410 - fix a possible out of range access in EigenSolver
· Bug 406 - fix infinite loop/deadlock when using OpenMP and Eigen
· Changeset 4462 - fix broken asserts revealed by Clang
· Changeset 4457 - fix description of rankUpdate() in quick reference guide
· Changeset 4455 - fix out-of-range int constant in 4x4 inverse
· Bug 398 - fix in slerp: the returned quaternion was not always normalized
· Changeset 4432 - fix asserts in eigenvalue decompositions
· Changeset 4416 - fix MSVC integer overflow warning