Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何从矩阵中访问单个向量?
例如:有没有一种方法可以使用类似于返回的A(i)矩阵来提取向量?Eigen::MatrixXf A(10,10)Eigen::VectorXf A(10)
A(i)
Eigen::MatrixXf A(10,10)
Eigen::VectorXf A(10)
在文档中找到:/ 访问单个列的方式是.col(i),对于行也是如此,它的.row(i). 同样令人感兴趣的是.block<>。
.col(i)
.row(i)
.block<>