返回「计算机、信息技术与工程」
使用Eigen库处理线性代数问题
本文目录 5 个章节
使用Eigen库处理线性代数问题
创建时间:2024/1/14 15:17
Overview
Eigen is a C++ template library for linear algebra: matrices, vectors, numerical solvers, and related algorithms.
Eigen一个重要特点是没有什么依赖的库,本身仅有许多头文件组成,因此非常轻量而易于跨平台。你要做的就是把用到的头文件和你的代码放在一起就可以了。
VS Project中配置
- 下载:http://eigen.tuxfamily.org/index.php?title=Main_Page
- 解压后将Eigen subdirectory解压到方便的位置
- 新建VS Console Project
- 右键相应的Project -> Properties -> Configuration Properties -> C/C++ -> General -> Additional Include Directories 。 将Eigen文件夹的父目录路径加进去
#include "Eigen/Dense"即可开始试用
Demos
string str1 = "test";
string str2 = "test";
string str1 = "test";
string str2 = "test";
更多相关文章
https://blog.csdn.net/wokaowokaowokao12345/article/details/53397488 https://blog.csdn.net/Lu_gl/article/details/107098388 https://blog.csdn.net/Robot_Starscream/article/details/102306559
Ref
http://eigen.tuxfamily.org/dox/GettingStarted.html
C++矩阵运算库推荐 https://my.oschina.net/cvnote/blog/165340