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