Improve documentation of reshaped

This commit is contained in:
Gael Guennebaud
2017-02-21 17:03:10 +01:00
parent 9b6e365018
commit d29e9d7119
3 changed files with 40 additions and 8 deletions

View File

@@ -0,0 +1,5 @@
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;