aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/reshape.cpp
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 /test/reshape.cpp
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 'test/reshape.cpp')
-rw-r--r--test/reshape.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/test/reshape.cpp b/test/reshape.cpp
index 2c241f2fe..14a02bb3b 100644
--- a/test/reshape.cpp
+++ b/test/reshape.cpp
@@ -157,8 +157,9 @@ void reshape4x4(MatType m)
VERIFY_IS_EQUAL(m.reshaped().reshaped(8,2), m.reshaped(8,2));
VERIFY_IS_EQUAL(m.reshaped(), m.template reshaped<ColMajor>());
- VERIFY_IS_EQUAL(m.transpose().reshaped().transpose(), m.template reshaped<RowMajor>());
- VERIFY_IS_EQUAL(m.template reshaped<RowMajor>(fix<1>, AutoSize), m.template reshaped<RowMajor>());
+ VERIFY_IS_EQUAL(m.transpose().reshaped(), m.template reshaped<RowMajor>());
+ VERIFY_IS_EQUAL(m.template reshaped<RowMajor>(AutoSize,fix<1>), m.template reshaped<RowMajor>());
+ VERIFY_IS_EQUAL(m.template reshaped<AutoOrder>(AutoSize,fix<1>), m.template reshaped<AutoOrder>());
VERIFY(is_same_eq(m.reshaped(AutoSize,fix<1>), m.reshaped()));
VERIFY_IS_EQUAL(m.template reshaped<RowMajor>(fix<1>,AutoSize), m.transpose().reshaped().transpose());