3 Index operator[] (
Index i)
const {
return std::max<Index>(0,
i-(out_size-in_size)); }
4 Index in_size, out_size;
8 A.reshaped() = VectorXi::LinSpaced(9,1,9);
9 cout <<
"Initial matrix A:\n" <<
A <<
"\n\n";
11 B =
A(pad{3,5}, pad{3,5});
12 cout <<
"A(pad{3,N}, pad{3,N}):\n" <<
B <<
"\n\n";
Matrix< int, Dynamic, Dynamic > MatrixXi
Dynamic×Dynamic matrix of type int.
Matrix< int, 3, 3 > Matrix3i
3×3 matrix of type int.
EIGEN_DEFAULT_DENSE_INDEX_TYPE Index
The Index type as used for the API.