Sign in
eigen
/
mirror
/
2b7b7aac57130228c8057aac7c4782bd1278c923
/
.
/
doc
/
snippets
/
Slicing_rawarray_cxx11.cpp
blob: 0495db6bfd3cec1306bfa3dbf322c0e291a4f371 [
file
] [
log
] [
blame
]
MatrixXi
A
=
MatrixXi
::
Random
(
4
,
6
);
cout
<<
"Initial matrix A:\n"
<<
A
<<
"\n\n"
;
cout
<<
"A(all,{4,2,5,5,3}):\n"
<<
A
(
Eigen
::
placeholders
::
all
,
{
4
,
2
,
5
,
5
,
3
})
<<
"\n\n"
;