o /** @mainpage Eigen
Table of contents
Overview
License
Features
To-do wiki
Compiler Support
News
Download
Relation to KDE
Examples
Applications using Eigen
Credits
Contact us
Mailing list
Overview
Eigen is a C++ template library for vector and matrix math, a.k.a. linear algebra. It aims to concile speed, ease of use, and completeness.
License
Eigen is dual-licensed: it can be redistributed and/or modified, at your choice,
- either under the LGPL, version 3 or later,
- or under the GPL, version 2 or later.
Note that this is an OR, not an AND. You do not need to conform to both licenses, you just pick the one that you prefer. Typically, GPL projects will regard Eigen as GPL-licensed while non-GPL projects will regard Eigen as LGPL-licensed.
Short licensing FAQ:
Question: Why not just license under the LGPL, since anyway it is more liberal than the GPL?
Answer: A library licensed under the LGPL3 cannot be used by a program licensed under the GPL2 (see here for details). Therefore, we offer the GPL2 as an alternative license choice for Eigen, in order to allow GPL2 programs to use it.
Question: Why require the LGPL version to be at least 3?
Answer: Because up to version 2.1, the LGPL does not handle the case of C++ template libraries, where all the code is in headers. This problem was solved in version 3 of the LGPL.
Features
WARNING: this alpha release is NOT feature complete -- far from it! It contains only the Core module, while several other modules are planned.
Here are general features of Eigen and more specific features of the Core module:
- Expression templates everywhere. This is an optimization (elimination of temporaries, lazy evaluation), but more importantly this allows for a much nicer API, especially as Eigen supports lvalue expressions. For example, the following is valid with Eigen and compiles to optimized code:
\code matrix.row(i) += factor * matrix.row(j); \endcode
- Both fixed-size and dynamic-size objects are supported, with uniform API,
in a way that allows Eigen to make
all usual optimizations in the case of fixed size, such as loop unrolling. Moreover
special care is used to ensure that the fixed-size types never cause dynamic memory
allocations. Even when the dimensions of an expression at not known at compile-time,
if a fixed bound is known (e.g. when taking a block in a fixed-size matrix) then
Eigen uses it to allocate a static array instead of a dynamic one.
- Both column-vectors and row-vectors are supported, as special cases of matrices.
- The following scalar types are supported and well tested: \c int, \c float, \c double,
\c std::complex, \c std::complex.
To-do wiki
The To-do wiki for Eigen is here: http://techbase.kde.org/index.php?title=Projects/Eigen/TODO.
Compiler Support
Eigen is standard C++98 and so should theoretically be compatible with any compliant compiler. Of course, in practice, things might be slightly different. At least, Eigen is known to compile with any version of GCC from 3.3 to 4.3 as well as with recent versions of ICC.
Eigen is well tested with recent versions of GCC and ICC. Both GCC 4.2 and ICC gives very good performance. ICC might provide even better performance when the auto-vectorization makes sense. For some reason the performance is not so great with GCC 4.1.
For best performance, we recommend the following compilation flags:
- \b GCC: \c -O3 \c -DNDEBUG \c -finline-limit=10000 \c -falign-functions=64
- \b ICC: \c -O3 \c -DNDEBUG \c -xT \c -ipo \c -no-prec-div \c -no-inline-max-size
News
If you want to stay informed of Eigen news and releases, please subscribe to our mailing list. You can also browse the archive.
Download
The source code of the latest release is here: eigen-2.0-alpha4.tar.gz
Alternatively, you can checkout the development tree by anonymous svn, by doing:
svn co svn://anonsvn.kde.org/home/kde/branches/work/eigen2
or view it online at this address:
http://websvn.kde.org/branches/work/eigen2
Relation to KDE
First of all: Eigen doesn't have any dependency. In particular, it doesn't depend on any part of KDE or on Qt.
Eigen is part of the KDE project, in the sense that:
- Its development tree is hosted in the KDE repository.
- It has been founded by, and is developed by KDE people.
- It has originally been designed for the needs of KDE applications, especially Kalzium.
However, we quickly realized that Eigen could be useful for non-KDE projects, whence our decision to make sure that it has no dependency on KDE or Qt.
Although Eigen itself doesn't have any dependency, the unit-tests require Qt.
Examples
There are a lot of small examples throughout the documentation. TODO: write more interesting,
standalone "demos".
Applications using Eigen
TODO: update this section; make web links
Currently: Kalzium, Avogadro, KSpread(a bit), Krita(a bit)
Planned: much more use in KOffice 2.1, Step (if we make Eigen good enough!)
Please tell us if you know of other interesting projects using Eigen!
Credits
- Benoit Jacob (jacob at math jussieu fr) : Main developer
- Gael Guennebaud (gael guennebaud at gmail com) : Large contributions
- Christian Mayer (mail at christianmayer de) : reviewed the source code, made many useful suggestions
- Michael Olbrich (michael olbrich at gmx net) : initial loop-unrolling metaprogram
- and thanks to everyone on the mailing list for your input!
Contact us
The best way to contact us is by means of our mailing list.
IRC Channel: \#eigen on Freenode.
Website (you're here): http://eigen.tuxfamily.org
Mailing list
The Mailing list for Eigen is: eigen at lists tuxfamily org.
To subscribe, send a mail with subject "subscribe" to eigen-request at lists tuxfamily org.
To unsubscribe, send a mail with subject "unsubscribe" to eigen-request at lists tuxfamily org.
You can also browse the archive.
*/