本征动态矩阵初始化

本征动态矩阵初始化

问题描述:

我在弄清楚如何在Eigen的运行时设置MatrixXd的行和列时遇到了一些麻烦。谁能指出我的一些文档或提供有关如何执行此操作的指导?

I am having some trouble figuring out how to set the rows and columns of a MatrixXd at runtime in Eigen. Can anyone point me to some documentation or give some pointer on how to do this?

谢谢。

您可以在运行时使用方法 resize(nrow,ncol)定义MatrixXd大小。您可以在此链接及其API定义此处

You can define a MatrixXd size at runtime by using the method resize(nrow, ncol). You can read more about resizing a dynamic matrix in this link and its API definition here.