Sign in
third-party-mirror
/
eigen
/
941ca8d83f776b9a07153d3abef2877907aa0555
/
.
/
doc
/
snippets
/
Slicing_arrayexpr.cpp
blob: b78dbfa17ce6b724335158a613f962e461ce89fb [
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"
;