Jitse Niesen | a9fe75e | 2010-07-31 21:37:29 +0100 | [diff] [blame] | 1 | Matrix3i mat; |
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; |