Sign in
third-party-mirror
/
eigen
/
f6c457cdc27f232d7cf7f4f9b801aa8c3f9f18c6
/
.
/
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"
;