diff --git a/include/xtensor-python/pyarray.hpp b/include/xtensor-python/pyarray.hpp index 19a10ca..9422ea8 100644 --- a/include/xtensor-python/pyarray.hpp +++ b/include/xtensor-python/pyarray.hpp @@ -624,7 +624,7 @@ namespace xt template inline pyarray pyarray::from_shape(S&& shape) { - auto shp = xtl::forward_sequence(shape); + auto shp = xtl::forward_sequence(shape); return self_type(shp); } //@} @@ -679,7 +679,7 @@ namespace xt : base_type() { // TODO: prevent intermediary shape allocation - shape_type shape = xtl::forward_sequence(e.derived_cast().shape()); + shape_type shape = xtl::forward_sequence(e.derived_cast().shape()); strides_type strides = xtl::make_sequence(shape.size(), size_type(0)); compute_strides(shape, layout_type::row_major, strides); init_array(shape, strides); diff --git a/include/xtensor-python/pycontainer.hpp b/include/xtensor-python/pycontainer.hpp index 4508c5c..08a7ce7 100644 --- a/include/xtensor-python/pycontainer.hpp +++ b/include/xtensor-python/pycontainer.hpp @@ -378,7 +378,7 @@ namespace xt inline void pycontainer::resize(const S& shape, const strides_type& strides) { detail::check_dims::run(shape.size()); - derived_type tmp(xtl::forward_sequence(shape), strides); + derived_type tmp(xtl::forward_sequence(shape), strides); *static_cast(this) = std::move(tmp); } diff --git a/include/xtensor-python/pytensor.hpp b/include/xtensor-python/pytensor.hpp index f579b00..13a2f1e 100644 --- a/include/xtensor-python/pytensor.hpp +++ b/include/xtensor-python/pytensor.hpp @@ -334,7 +334,7 @@ namespace xt inline pytensor pytensor::from_shape(S&& shape) { detail::check_dims::run(shape.size()); - auto shp = xtl::forward_sequence(shape); + auto shp = xtl::forward_sequence(shape); return self_type(shp); } //@} @@ -378,7 +378,7 @@ namespace xt inline pytensor::pytensor(const xexpression& e) : base_type() { - shape_type shape = xtl::forward_sequence(e.derived_cast().shape()); + shape_type shape = xtl::forward_sequence(e.derived_cast().shape()); strides_type strides = xtl::make_sequence(N, size_type(0)); compute_strides(shape, layout_type::row_major, strides); init_tensor(shape, strides);