我正在编译一个使用多个 Eigen::MatrixXd 方法的程序,虽然编译时没有错误,但运行它时出现以下错误:
darwin-pi2: /usr/include/Eigen/src/Core/Assign.h:498: Derived& Eigen::DenseBase<Derived>::lazyAssign(const Eigen::DenseBase<OtherDerived>&) [with OtherDerived = Eigen::Matrix<double, -1, -1>; Derived = Eigen::Matrix<double, 15, 15, 0, 15, 15>]: Assertion `rows() == other.rows() && cols() == other.cols()' failed.
我想这与特征矩阵有关,但我不明白是什么Assertion rows() == other.rows() && cols() == other.cols()' failed
意思。