Sign in
eigen
/
mirror
/
c21a80be3d0506587e73f7a5796df6e83967a934
/
.
/
doc
/
snippets
/
Slicing_stdvector_cxx11.cpp
blob: 7d5ad0cdb736e163e1706c14e601d9f815b8ec46 [
file
] [
log
] [
blame
]
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
(
Eigen
::
placeholders
::
all
,
ind
)
<<
"\n\n"
;