2023-12-06 05:22:55 +08:00
|
|
|
MatrixXf a(2, 3);
|
|
|
|
|
a << 1, 2, 3, 4, 5, 6;
|
2010-06-28 06:05:11 +08:00
|
|
|
cout << "Here is the initial matrix a:\n" << a << endl;
|
2010-06-28 19:30:10 +08:00
|
|
|
|
2010-06-28 06:05:11 +08:00
|
|
|
a.transposeInPlace();
|
2020-03-22 09:30:06 +08:00
|
|
|
cout << "and after being transposed:\n" << a << endl;
|