@@ -162,14 +162,14 @@ namespace xt
162162 {
163163 SCOPED_TRACE (" row_major reshape" );
164164 row_major_result<C> rm;
165- vec.reshape (rm.m_shape , layout ::row_major);
165+ vec.reshape (rm.m_shape , layout_type ::row_major);
166166 compare_shape (vec, rm);
167167 }
168168
169169 {
170170 SCOPED_TRACE (" column_major reshape" );
171171 column_major_result<C> cm;
172- vec.reshape (cm.m_shape , layout ::column_major);
172+ vec.reshape (cm.m_shape , layout_type ::column_major);
173173 compare_shape (vec, cm);
174174 }
175175
@@ -183,12 +183,14 @@ namespace xt
183183 {
184184 SCOPED_TRACE (" unit_shape reshape" );
185185 unit_shape_result<C> usr;
186- vec.reshape (usr.m_shape , layout ::row_major);
186+ vec.reshape (usr.m_shape , layout_type ::row_major);
187187 compare_shape (vec, usr);
188188 }
189189 }
190190
191- template <class V , class C = std::vector<std::size_t >>
191+ // TODO: add back when in place transpose methods have been added
192+ // into xtensor
193+ /* template <class V, class C = std::vector<std::size_t>>
192194 void test_transpose(V& vec)
193195 {
194196 using inner_shape_type = typename V::inner_shape_type;
@@ -280,7 +282,7 @@ namespace xt
280282 EXPECT_THROW(vec.transpose({1, 2}, check_policy::full()), transpose_error);
281283 EXPECT_THROW(vec.transpose({3, 0, 1}, check_policy::full()), transpose_error);
282284 }
283- }
285+ }*/
284286
285287 template <class V1 , class V2 >
286288 void assign_array (V1& dst, const V2& src)
@@ -313,7 +315,7 @@ namespace xt
313315 {
314316 SCOPED_TRACE (" row_major access" );
315317 row_major_result<C> rm;
316- vec.reshape (rm.m_shape , layout ::row_major);
318+ vec.reshape (rm.m_shape , layout_type ::row_major);
317319 assign_array (vec, rm.m_assigner );
318320 EXPECT_TRUE (std::equal (vec.data ().cbegin (), vec.data ().cend (), rm.m_data .cbegin ()));
319321 EXPECT_EQ (vec (2 , 1 , 0 ), vec (2 , 1 ));
@@ -324,7 +326,7 @@ namespace xt
324326 {
325327 SCOPED_TRACE (" column_major access" );
326328 column_major_result<C> cm;
327- vec.reshape (cm.m_shape , layout ::column_major);
329+ vec.reshape (cm.m_shape , layout_type ::column_major);
328330 assign_array (vec, cm.m_assigner );
329331 EXPECT_TRUE (std::equal (vec.data ().cbegin (), vec.data ().cend (), cm.m_data .cbegin ()));
330332 EXPECT_EQ (vec (2 , 1 , 0 ), vec (2 , 1 ));
@@ -346,7 +348,7 @@ namespace xt
346348 {
347349 SCOPED_TRACE (" unit_shape access" );
348350 unit_shape_result<C> usr;
349- vec.reshape (usr.m_shape , layout ::row_major);
351+ vec.reshape (usr.m_shape , layout_type ::row_major);
350352 assign_array (vec, usr.m_assigner );
351353 EXPECT_TRUE (std::equal (vec.data ().cbegin (), vec.data ().cend (), usr.m_data .cbegin ()));
352354 EXPECT_EQ (vec (2 , 0 , 0 ), vec (2 , 0 ));
@@ -382,7 +384,7 @@ namespace xt
382384 {
383385 SCOPED_TRACE (" row_major access" );
384386 row_major_result<C> rm;
385- vec.reshape (rm.m_shape , layout ::row_major);
387+ vec.reshape (rm.m_shape , layout_type ::row_major);
386388 indexed_assign_array (vec, rm.m_assigner );
387389 EXPECT_TRUE (std::equal (vec.data ().cbegin (), vec.data ().cend (), rm.m_data .cbegin ()));
388390 EXPECT_EQ (vec (2 , 1 , 0 ), vec[index1]);
@@ -392,7 +394,7 @@ namespace xt
392394 {
393395 SCOPED_TRACE (" column_major access" );
394396 column_major_result<C> cm;
395- vec.reshape (cm.m_shape , layout ::column_major);
397+ vec.reshape (cm.m_shape , layout_type ::column_major);
396398 indexed_assign_array (vec, cm.m_assigner );
397399 EXPECT_TRUE (std::equal (vec.data ().cbegin (), vec.data ().cend (), cm.m_data .cbegin ()));
398400 EXPECT_EQ (vec (2 , 1 , 0 ), vec[index1]);
@@ -412,7 +414,7 @@ namespace xt
412414 {
413415 SCOPED_TRACE (" unit_shape access" );
414416 unit_shape_result<C> usr;
415- vec.reshape (usr.m_shape , layout ::row_major);
417+ vec.reshape (usr.m_shape , layout_type ::row_major);
416418 indexed_assign_array (vec, usr.m_assigner );
417419 EXPECT_TRUE (std::equal (vec.data ().cbegin (), vec.data ().cend (), usr.m_data .cbegin ()));
418420 xindex id1 = { 2 , 0 };
@@ -488,15 +490,15 @@ namespace xt
488490 {
489491 SCOPED_TRACE (" row_major storage iterator" );
490492 row_major_result<C> rm;
491- vec.reshape (rm.m_shape , layout ::row_major);
493+ vec.reshape (rm.m_shape , layout_type ::row_major);
492494 std::copy (rm.data ().cbegin (), rm.data ().cend (), vec.begin ());
493495 EXPECT_TRUE (std::equal (rm.data ().cbegin (), rm.data ().cend (), vec.data ().cbegin ()));
494496 }
495497
496498 {
497499 SCOPED_TRACE (" column_major storage iterator" );
498500 column_major_result<C> cm;
499- vec.reshape (cm.m_shape , layout ::column_major);
501+ vec.reshape (cm.m_shape , layout_type ::column_major);
500502 std::copy (cm.data ().cbegin (), cm.data ().cend (), vec.begin ());
501503 EXPECT_TRUE (std::equal (cm.data ().cbegin (), cm.data ().cend (), vec.data ().cbegin ()));
502504 }
@@ -512,7 +514,7 @@ namespace xt
512514 {
513515 SCOPED_TRACE (" unit_shape storage iterator" );
514516 unit_shape_result<C> usr;
515- vec.reshape (usr.m_shape , layout ::row_major);
517+ vec.reshape (usr.m_shape , layout_type ::row_major);
516518 std::copy (usr.data ().cbegin (), usr.data ().cend (), vec.begin ());
517519 EXPECT_TRUE (std::equal (usr.data ().cbegin (), usr.data ().cend (), vec.data ().cbegin ()));
518520 }
0 commit comments