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