mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-04-20 16:49:38 +08:00
6 lines
291 B
C++
6 lines
291 B
C++
using Eigen::placeholders::all;
|
|
Matrix4i m = Matrix4i::Random();
|
|
cout << "Here is the matrix m:" << endl << m << endl;
|
|
cout << "Here is m(all).transpose():" << endl << m(all).transpose() << endl;
|
|
cout << "Here is m.reshaped(fix<1>,AutoSize):" << endl << m.reshaped(fix<1>,AutoSize) << endl;
|