source: pacpussensors/trunk/Vislab/lib3dv-1.2.0/lib3dv/eigen/doc/snippets/TopicAliasing_block.cpp

Last change on this file was 136, checked in by ldecherf, 8 years ago

Doc

File size: 267 bytes
Line 
1MatrixXi mat(3,3);
2mat << 1, 2, 3, 4, 5, 6, 7, 8, 9;
3cout << "Here is the matrix mat:\n" << mat << endl;
4
5// This assignment shows the aliasing problem
6mat.bottomRightCorner(2,2) = mat.topLeftCorner(2,2);
7cout << "After the assignment, mat = \n" << mat << endl;
Note: See TracBrowser for help on using the repository browser.