Jitse Niesen | 530b328 | 2010-08-08 21:20:14 +0100 | [diff] [blame] | 1 | MatrixXi mat(3,3); |
Jitse Niesen | a9fe75e | 2010-07-31 21:37:29 +0100 | [diff] [blame] | 2 | mat << 1, 2, 3, 4, 5, 6, 7, 8, 9; |
3 | cout << "Here is the matrix mat:\n" << mat << endl; | ||||
4 | mat.bottomRightCorner(2,2) = mat.topLeftCorner(2,2); | ||||
5 | cout << "After the assignment, mat = \n" << mat << endl; |