From 5f26f57598b4f795cdaf5797fdb33f0e948cc81c Mon Sep 17 00:00:00 2001 From: Gael Guennebaud Date: Wed, 3 Oct 2018 11:41:47 +0200 Subject: Change the logic of A.reshaped() to be a simple alias to A.reshaped(AutoSize,fix<1>). This means that now AutoOrder is allowed, and it always return a column-vector. --- test/reshape.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'test/reshape.cpp') 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()); - VERIFY_IS_EQUAL(m.transpose().reshaped().transpose(), m.template reshaped()); - VERIFY_IS_EQUAL(m.template reshaped(fix<1>, AutoSize), m.template reshaped()); + VERIFY_IS_EQUAL(m.transpose().reshaped(), m.template reshaped()); + VERIFY_IS_EQUAL(m.template reshaped(AutoSize,fix<1>), m.template reshaped()); + VERIFY_IS_EQUAL(m.template reshaped(AutoSize,fix<1>), m.template reshaped()); VERIFY(is_same_eq(m.reshaped(AutoSize,fix<1>), m.reshaped())); VERIFY_IS_EQUAL(m.template reshaped(fix<1>,AutoSize), m.transpose().reshaped().transpose()); -- cgit v1.2.3