Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions include/xtensor-python/pyarray.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -293,6 +293,9 @@ namespace xt
struct xcontainer_inner_types<pyarray<T, L>>
{
using storage_type = xbuffer_adaptor<T*>;
using reference = typename storage_type::reference;
using const_reference = typename storage_type::const_reference;
using size_type = typename storage_type::size_type;
using shape_type = std::vector<typename storage_type::size_type>;
using strides_type = std::vector<typename storage_type::difference_type>;
using backstrides_type = pyarray_backstrides<pyarray<T, L>>;
Expand Down
3 changes: 3 additions & 0 deletions include/xtensor-python/pytensor.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,9 @@ namespace xt
struct xcontainer_inner_types<pytensor<T, N, L>>
{
using storage_type = xbuffer_adaptor<T*>;
using reference = typename storage_type::reference;
using const_reference = typename storage_type::const_reference;
using size_type = typename storage_type::size_type;
using shape_type = std::array<npy_intp, N>;
using strides_type = shape_type;
using backstrides_type = shape_type;
Expand Down