我在编译#include这个程序时遇到了麻烦。我看到,如果我注释掉它编译的这条线。 MatrixXd A =(1.0 /(double)d)*(p * U * p.transpose() - (p * u)*(p * u).transpose())。inverse(); 我无法更改标题,因为我需要在ROS中运行此代码,并且必须使用内置的Eigen库。我正在使用此链接中描述的代码 How to fi
如何添加Eigen的SparseMatrix到Eigen的张量? 下面的代码(不能编译)解释了我正在尝试做的事情。 #include <iostream>
#include <Eigen/Sparse>
#include <unsupported/Eigen/CXX11/Tensor>
using Eigen::Tensor;
using Eigen::SparseMatrix;
i