Sign in
third-party-mirror
/
eigen
/
2a10258d45ce0d23630971b7050643d0828d10de
/
.
/
doc
/
snippets
/
Slicing_arrayexpr.cpp
blob: 6d0998025e7b817e354165cb4144702d43a1efda [
file
] [
log
] [
blame
]
ArrayXi
ind
(
5
);
ind
<<
4
,
2
,
5
,
5
,
3
;
MatrixXi
A
=
MatrixXi
::
Random
(
4
,
6
);
cout
<<
"Initial matrix A:\n"
<<
A
<<
"\n\n"
;
cout
<<
"A(all,ind-1):\n"
<<
A
(
Eigen
::
placeholders
::
all
,
ind
-
1
)
<<
"\n\n"
;