GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

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
Filter options
  • include/xtensor-python
    • pyarray.hpp
    • pytensor.hpp
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎include/xtensor-python/pyarray.hpp‎

Copy file name to clipboardExpand all lines: include/xtensor-python/pyarray.hpp
+3Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -293,6 +293,9 @@ namespace xt
293293
struct xcontainer_inner_types<pyarray<T, L>>
294294
{
295295
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;
296299
using shape_type = std::vector<typename storage_type::size_type>;
297300
using strides_type = std::vector<typename storage_type::difference_type>;
298301
using backstrides_type = pyarray_backstrides<pyarray<T, L>>;
Collapse file

‎include/xtensor-python/pytensor.hpp‎

Copy file name to clipboardExpand all lines: include/xtensor-python/pytensor.hpp
+3Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,9 @@ namespace xt
112112
struct xcontainer_inner_types<pytensor<T, N, L>>
113113
{
114114
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;
115118
using shape_type = std::array<npy_intp, N>;
116119
using strides_type = shape_type;
117120
using backstrides_type = shape_type;

0 commit comments

Comments
0 (0)
You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.