Eigen 3.4.90
doc
snippets
Slicing_arrayexpr.cpp
Go to the documentation of this file.
1
ArrayXi
ind
(5);
ind
<<4,2,5,5,3;
2
MatrixXi
A
= MatrixXi::Random(4,6);
3
cout <<
"Initial matrix A:\n"
<<
A
<<
"\n\n"
;
4
cout <<
"A(all,ind-1):\n"
<<
A
(
Eigen::placeholders::all
,
ind
-1) <<
"\n\n"
;
A
MatrixXcf A
Definition:
ComplexEigenSolver_compute.cpp:1
ind
ArrayXi ind(5)
Eigen::placeholders::all
static const Eigen::internal::all_t all
Definition:
IndexedViewHelper.h:189
Eigen::ArrayXi
Array< int, Dynamic, 1 > ArrayXi
Definition:
Array.h:344
Eigen::MatrixXi
Matrix< int, Dynamic, Dynamic > MatrixXi
Dynamic×Dynamic matrix of type int.
Definition:
Matrix.h:500