Skip to content

Commit 5fabca8

Browse files
committed
Use xstrided's compute_strides
1 parent b2d84d2 commit 5fabca8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

include/xtensor-python/pyarray.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@ namespace xt
261261
inline pyarray<T>::pyarray(const shape_type& shape, layout l)
262262
{
263263
strides_type strides;
264-
base_type::fill_default_strides(shape, l, strides);
264+
compute_strides(shape, l, strides);
265265
init_array(shape, strides);
266266
}
267267

include/xtensor-python/pytensor.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ namespace xt
179179
template <class T, std::size_t N>
180180
inline pytensor<T, N>::pytensor(const shape_type& shape, layout l)
181181
{
182-
base_type::fill_default_strides(shape, l, m_strides);
182+
compute_strides(shape, l, m_strides);
183183
init_tensor(shape, m_strides);
184184
}
185185

0 commit comments

Comments
 (0)