blob: 7d40cfafdc61e70642d8917049ce0b4461c3b4c6 [file] [log] [blame]
Jitse Niesen530b3282010-08-08 21:20:14 +01001MatrixXi mat(3,3);
Jitse Niesena9fe75e2010-07-31 21:37:29 +01002mat << 1, 2, 3, 4, 5, 6, 7, 8, 9;
3cout << "Here is the matrix mat:\n" << mat << endl;
4mat.bottomRightCorner(2,2) = mat.topLeftCorner(2,2);
5cout << "After the assignment, mat = \n" << mat << endl;