Extracting some rows and columns

ぐ巨炮叔叔 提交于 2019-12-11 19:38:56

问题


I was wondering if there is a way to subset a matrix in EIGEN into another Matrix based on some condition.

For example in MATLAB, one can do this: Let A be a matrix of size 5-by-5.

B=A(1:3,2:3)

This will create a new matrix B from A with dimensions 3-by-2 and with elements from A at the relevant indices.

来源:https://stackoverflow.com/questions/33652497/extracting-some-rows-and-columns

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!