tut_arithmetic_transpose_inplace.cpp
Go to the documentation of this file.
1 MatrixXf a(2,3); a << 1, 2, 3, 4, 5, 6;
2 cout << "Here is the initial matrix a:\n" << a << endl;
3 
4 
5 a.transposeInPlace();
6 cout << "and after being transposed:\n" << a << endl;
Matrix< float, Dynamic, Dynamic > MatrixXf
Dynamic×Dynamic matrix of type float.
Definition: Matrix.h:501
MatrixXf a(2, 3)