Change the logic of A.reshaped<Order>() to be a simple alias to A.reshaped<Order>(AutoSize,fix<1>).

This means that now AutoOrder is allowed, and it always return a column-vector.
This commit is contained in:
Gael Guennebaud
2018-10-03 11:41:47 +02:00
parent 0481900e25
commit 5f26f57598
4 changed files with 19 additions and 27 deletions

View File

@@ -1,4 +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;
cout << "Here is m.reshaped<RowMajor>().transpose(): " << endl << m.reshaped<RowMajor>().transpose() << endl;