Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to check the version number of Eigen C++ template library?

Tags:

c++

eigen

I added several different versions of Eigen to default including directory of Visual C++. But I got collapse problem when using LDLT (Cholesky decomposition) for some of the testing numerical examples.

So I want to determine which version is actually active when debugging the code.

Is there any function which can indicate the current active Eigen version number?

like image 640
LCFactorization Avatar asked Feb 01 '14 10:02

LCFactorization


People also ask

How do I add an Eigen library?

go to codeblocks Settings-> complier-> Search Directories-> Add-> enter the address of the folder you chose in (1)-> o.k. declare #include "Eigen/Dense" before the main function.

Is Eigen open source?

Eigen is open-source software licensed under the Mozilla Public License 2.0 since version 3.1.

What is Eigen dense?

The Eigen/Dense header file defines all member functions for the MatrixXd type and related types (see also the table of header files). All classes and functions defined in this header file (and other Eigen header files) are in the Eigen namespace.


1 Answers

This answer is only a summary from the comments above:

  • At compile-time you have EIGEN_WORLD_VERSION, EIGEN_MAJOR_VERSION and EIGEN_MINOR_VERSION, you can easily embed this information in your application.

  • 3.1.91 sounds like a beta version of 3.2.

  • The version number macros are defined in Macros.h located at \Eigen\src\Core\util\.

like image 57
LCFactorization Avatar answered Sep 17 '22 16:09

LCFactorization