如何查看Eigen C ++模板库的版本号? [英] How to check the version number of Eigen C++ template library?
问题描述
我向默认添加了Eigen的几种不同版本,包括Visual C ++目录。
但是在一些测试数值示例中使用 LDLT
(Cholesky分解)时出现崩溃问题。
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?
推荐答案
此答案只是以上评论的摘要:
This answer is only a summary from the comments above:
-
在编译时,您有
EIGEN_WORLD_VERSION
,EIGEN_MAJOR_VERSION
和EIGEN_MINOR_VERSION
,您可以轻松地将此信息嵌入到
您的应用程序中。
At compile-time you have
EIGEN_WORLD_VERSION
,EIGEN_MAJOR_VERSION
andEIGEN_MINOR_VERSION
, you can easily embed this information in your application.
3.1.91
听起来像 3.2
的 beta版本
。
版本号宏在
\Eigen的
。 Macros.h
中定义\src\Core\util\
The version number macros are defined in Macros.h
located at
\Eigen\src\Core\util\
.
这篇关于如何查看Eigen C ++模板库的版本号?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!