2 mat << 1, 2, 3, 4, 5, 6, 7, 8, 9;
3 cout <<
"Here is the matrix mat:\n" <<
mat << endl;
6 mat.bottomRightCorner(2,2) =
mat.topLeftCorner(2,2).eval();
7 cout <<
"After the assignment, mat = \n" <<
mat << endl;
Matrix< int, Dynamic, Dynamic > MatrixXi
Dynamic×Dynamic matrix of type int.