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