Skip to content

Commit 75e68b0

Browse files
Merge pull request xtensor-stack#107 from SylvainCorlay/xtensor-0.11
Adjustments for xtensor 0.11
2 parents 9e0f1ad + 075106b commit 75e68b0

File tree

4 files changed

+7
-6
lines changed

4 files changed

+7
-6
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -190,10 +190,10 @@ from the `docs` subdirectory.
190190
| `xtensor-python` | `xtensor` | `pybind11` |
191191
|-------------------|------------|-------------|
192192
| master | ^0.10.9 | ^2.1.0 |
193-
| 0.12.x | ^0.10.2 | ^2.1.0 |
194-
| 0.11.x | ^0.10.0 | ^2.1.0 |
195-
| 0.10.x | ^0.9.0 | ^2.1.0 |
196-
| 0.9.x | ^0.8.1 | ^2.1.0 |
193+
| 0.12.x | ^0.10.2 | 2.1.\* |
194+
| 0.11.x | ^0.10.0 | 2.1.\* |
195+
| 0.10.x | ^0.9.0 | 2.1.\* |
196+
| 0.9.x | ^0.8.1 | 2.1.\* |
197197

198198
These dependencies are automatically resolved when using the conda package manager.
199199

include/xtensor-python/pyarray.hpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,7 @@ namespace xt
113113
using inner_strides_type = pystrides_adaptor<sizeof(T)>;
114114
using inner_backstrides_type = backstrides_type;
115115
using temporary_type = pyarray<T>;
116+
static constexpr layout_type layout = layout_type::dynamic;
116117
};
117118

118119
/**
@@ -386,7 +387,7 @@ namespace xt
386387
*/
387388
template <class T>
388389
inline pyarray<T>::pyarray(const self_type& rhs)
389-
: base_type()
390+
: base_type(), semantic_base(rhs)
390391
{
391392
auto tmp = pybind11::reinterpret_steal<pybind11::object>(
392393
PyArray_NewLikeArray(rhs.python_array(), NPY_KEEPORDER, nullptr, 1));

include/xtensor-python/pycontainer.hpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
#include <functional>
1414
#include <numeric>
1515

16-
#include "pybind11/common.h"
1716
#include "pybind11/complex.h"
1817
#include "pybind11/pybind11.h"
1918

include/xtensor-python/pytensor.hpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,7 @@ namespace xt
9494
using inner_strides_type = strides_type;
9595
using inner_backstrides_type = backstrides_type;
9696
using temporary_type = pytensor<T, N>;
97+
static constexpr layout_type layout = layout_type::dynamic;
9798
};
9899

99100
/**

0 commit comments

Comments
 (0)