Sign in
eigen
/
mirror
/
8eab7b6886662a0b370eab5af96e8a26fa19f6df
/
.
/
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"
;