GeezerVison is showing github.com — Bring pyarray and pytensor up to date with xtensor 0.20.0 · craftit/xtensor-python@dc777e1
File tree
Expand file treeCollapse file tree
Open diff view settings
Expand file treeCollapse file tree
Open diff view settings
Collapse file
Copy file name to clipboardExpand all lines: include/xtensor-python/pyarray.hpp +3Lines changed: 3 additions & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -293,6 +293,9 @@ namespace xt |
293 | 293 | struct xcontainer_inner_types<pyarray<T, L>> |
294 | 294 | { |
295 | 295 | using storage_type = xbuffer_adaptor<T*>; |
| 296 | + using reference = typename storage_type::reference; |
| 297 | + using const_reference = typename storage_type::const_reference; |
| 298 | + using size_type = typename storage_type::size_type; |
296 | 299 | using shape_type = std::vector<typename storage_type::size_type>; |
297 | 300 | using strides_type = std::vector<typename storage_type::difference_type>; |
298 | 301 | using backstrides_type = pyarray_backstrides<pyarray<T, L>>; |
|
Collapse file
Copy file name to clipboardExpand all lines: include/xtensor-python/pytensor.hpp +3Lines changed: 3 additions & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -112,6 +112,9 @@ namespace xt |
112 | 112 | struct xcontainer_inner_types<pytensor<T, N, L>> |
113 | 113 | { |
114 | 114 | using storage_type = xbuffer_adaptor<T*>; |
| 115 | + using reference = typename storage_type::reference; |
| 116 | + using const_reference = typename storage_type::const_reference; |
| 117 | + using size_type = typename storage_type::size_type; |
115 | 118 | using shape_type = std::array<npy_intp, N>; |
116 | 119 | using strides_type = shape_type; |
117 | 120 | using backstrides_type = shape_type; |
|