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<>