add Eigen/Eigen

This commit is contained in:
Benoit Jacob 2009-06-19 20:49:02 +02:00
parent 89d7ba0be0
commit 9db0038c42
2 changed files with 9 additions and 7 deletions

2
Eigen/Eigen Normal file
View File

@ -0,0 +1,2 @@
#include "Dense"
#include "Sparse"

View File

@ -41,13 +41,6 @@ There is no library to link to. For good performance, add the \c -O2 compile-fla
On the x86 architecture, the SSE2 instruction set is not enabled by default. Use \c -msse2 to enable it, and Eigen will then automatically enable its vectorized paths. On x86-64 and AltiVec-based architectures, vectorization is enabled by default. On the x86 architecture, the SSE2 instruction set is not enabled by default. Use \c -msse2 to enable it, and Eigen will then automatically enable its vectorized paths. On x86-64 and AltiVec-based architectures, vectorization is enabled by default.
<a name="warningarraymodule"></a>
\warning \redstar In most cases it is enough to include the \c Eigen/Core header only to get started with Eigen. However, some features presented in this tutorial require the Array module to be included (\c \#include \c <Eigen/Array>). Those features are highlighted with a red star \redstar. Notice that if you want to include all dense (i.e. all except sparse) Eigen functionality at once, you can do:
\code
#include <Eigen/Dense>
\endcode
This slows compilation by roughly 10-20% but at least you don't have to worry anymore about including the correct files!
\section TutorialCoreSimpleExampleFixedSize Simple example with fixed-size matrices and vectors \section TutorialCoreSimpleExampleFixedSize Simple example with fixed-size matrices and vectors
@ -74,6 +67,13 @@ output:
</td></tr></table> </td></tr></table>
<a name="warningarraymodule"></a>
\warning \redstar In most cases it is enough to include the \c Eigen/Core header only to get started with Eigen. However, some features presented in this tutorial require the Array module to be included (\c \#include \c <Eigen/Array>). Those features are highlighted with a red star \redstar. Notice that if you want to include all Eigen functionality at once, you can do:
\code
#include <Eigen/Eigen>
\endcode
This slows compilation down but at least you don't have to worry anymore about including the correct files! There also is the Eigen/Dense header including all dense functionality i.e. leaving out the Sparse module.