TopicAliasing_block_correct.cpp
Go to the documentation of this file.
00001 MatrixXi mat(3,3); 
00002 mat << 1, 2, 3,   4, 5, 6,   7, 8, 9;
00003 cout << "Here is the matrix mat:\n" << mat << endl;
00004 
00005 // The eval() solves the aliasing problem
00006 mat.bottomRightCorner(2,2) = mat.topLeftCorner(2,2).eval();
00007 cout << "After the assignment, mat = \n" << mat << endl;


re_vision
Author(s): Dorian Galvez-Lopez
autogenerated on Sun Jan 5 2014 11:33:08