本征动态矩阵初始化 [英] Eigen dynamic matrix initialization

查看:79
本文介绍了本征动态矩阵初始化的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在弄清楚如何在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.

这篇关于本征动态矩阵初始化的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆