gtsam
3rdparty
Eigen
doc
snippets
Slicing_stdvector_cxx11.cpp
Go to the documentation of this file.
1
std::vector<int>
ind
{4,2,5,5,3};
2
MatrixXi
A
= MatrixXi::Random(4,6);
3
cout <<
"Initial matrix A:\n"
<<
A
<<
"\n\n"
;
4
cout <<
"A(all,ind):\n"
<<
A
(
all
,
ind
) <<
"\n\n"
;
ind
std::vector< int > ind
Definition:
Slicing_stdvector_cxx11.cpp:1
A
Definition:
test_numpy_dtypes.cpp:298
Eigen::all
static const Eigen::internal::all_t all
Definition:
IndexedViewHelper.h:171
A
MatrixXi A
Definition:
Slicing_stdvector_cxx11.cpp:2
gtsam
Author(s):
autogenerated on Sat Nov 16 2024 04:04:21