Ran*_*Ran 5 c++ eigen
我正在使用 Eigen::Map 来访问从 C 数组创建对象。我想将该对象保存为 MatrixXf 类型的成员变量。
我怎么做?我找不到将 Map 转换为 Matrix 的方法。
谢谢。
gga*_*ael 8
只需使用operator=:
operator=
MatrixXd mat; mat = Map<MatrixXd>(data, rows, cols);
归档时间:
11 年,11 月 前
查看次数:
2977 次
最近记录:
4 年,10 月 前