2010-06-28 00:05:11 +02:00
|
|
|
MatrixXf a(2, 3);
|
|
|
|
|
a << 1, 2, 3, 4, 5, 6;
|
|
|
|
|
cout << "Here is the initial matrix a:\n" << a << endl;
|
2010-06-28 13:30:10 +02:00
|
|
|
|
2010-06-28 00:05:11 +02:00
|
|
|
a.transposeInPlace();
|
2020-03-21 21:30:06 -04:00
|
|
|
cout << "and after being transposed:\n" << a << endl;
|