mirror of
https://gitlab.com/libeigen/eigen.git
synced 2024-12-21 07:19:46 +08:00
4 lines
163 B
C++
4 lines
163 B
C++
std::vector<int> ind{4,2,5,5,3};
|
|
MatrixXi A = MatrixXi::Random(4,6);
|
|
cout << "Initial matrix A:\n" << A << "\n\n";
|
|
cout << "A(all,ind):\n" << A(all,ind) << "\n\n"; |