@@ -322,7 +322,7 @@ namespace blockwise
322322 using input_expression_type = std::decay_t <E>;\
323323 using axes_type = filter_fixed_shape_t <typename input_expression_type::shape_type>;\
324324 axes_type axes = xtl::make_sequence<axes_type>(e.dimension ());\
325- XTENSOR_ASSERT (axes.dimension () == e.dimension ());\
325+ XTENSOR_ASSERT (axes.size () == e.dimension ());\
326326 std::iota (axes.begin (), axes.end (), 0 );\
327327 using functor_type = FUNCTOR <typename input_expression_type::value_type, T>;\
328328 return blockwise_reducer (\
@@ -397,7 +397,7 @@ namespace blockwise
397397 using input_expression_type = std::decay_t <E>;\
398398 using axes_type = filter_fixed_shape_t <typename input_expression_type::shape_type>;\
399399 axes_type axes = xtl::make_sequence<axes_type>(e.dimension ());\
400- XTENSOR_ASSERT (axes.dimension () == e.dimension ());\
400+ XTENSOR_ASSERT (axes.size () == e.dimension ());\
401401 std::iota (axes.begin (), axes.end (), 0 );\
402402 using functor_type = FUNCTOR <typename input_expression_type::value_type>;\
403403 return blockwise_reducer (\
@@ -468,7 +468,7 @@ namespace blockwise
468468 using input_expression_type = std::decay_t <E>;\
469469 using axes_type = filter_fixed_shape_t <typename input_expression_type::shape_type>;\
470470 axes_type axes = xtl::make_sequence<axes_type>(e.dimension ());\
471- XTENSOR_ASSERT (axes.dimension () == e.dimension ());\
471+ XTENSOR_ASSERT (axes.size () == e.dimension ());\
472472 std::iota (axes.begin (), axes.end (), 0 );\
473473 using functor_type = FUNCTOR <typename input_expression_type::value_type>;\
474474 return blockwise_reducer (\
0 commit comments