00001 MatrixXf a(2,3); a << 1, 2, 3, 4, 5, 6; 00002 cout << "Here is the initial matrix a:\n" << a << endl; 00003 00004 00005 a.transposeInPlace(); 00006 cout << "and after being transposed:\n" << a << endl;