aboutsummaryrefslogtreecommitdiffhomepage
path: root/doc/snippets
diff options
context:
space:
mode:
authorGravatar Gael Guennebaud <g.gael@free.fr>2018-10-03 11:41:47 +0200
committerGravatar Gael Guennebaud <g.gael@free.fr>2018-10-03 11:41:47 +0200
commit5f26f57598b4f795cdaf5797fdb33f0e948cc81c (patch)
treee32a248b84216c0d10db00a6780fa7b164c55870 /doc/snippets
parent0481900e25764f16e8723d2588f818d3a610cfad (diff)
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.
Diffstat (limited to 'doc/snippets')
-rw-r--r--doc/snippets/MatrixBase_reshaped_to_vector.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/snippets/MatrixBase_reshaped_to_vector.cpp b/doc/snippets/MatrixBase_reshaped_to_vector.cpp
index ee844c203..37f65f7c6 100644
--- a/doc/snippets/MatrixBase_reshaped_to_vector.cpp
+++ b/doc/snippets/MatrixBase_reshaped_to_vector.cpp
@@ -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;