Fix documentation of reshape to vectors.

This commit is contained in:
Gael Guennebaud
2018-09-25 16:35:44 +02:00
parent 84a1101b36
commit 41c3a2ffc1
3 changed files with 13 additions and 25 deletions

View File

@@ -0,0 +1,4 @@
Matrix4i m = Matrix4i::Random();
cout << "Here is the matrix m:" << endl << m << endl;
cout << "Here is m.reshaped().transpose():" << endl << m.reshaped().transpose() << endl;
cout << "Here is m.reshaped<RowMajor>(): " << endl << m.reshaped<RowMajor>() << endl;