Commit 2e2de8c8 by Henry Schreiner Committed by GitHub

fix: add missing signature (#2363)

* fix: add missing signature

* fix: add to array_t too
parent 830adda8
...@@ -611,8 +611,8 @@ public: ...@@ -611,8 +611,8 @@ public:
template <typename T> template <typename T>
explicit array(ssize_t count, const T *ptr, handle base = handle()) : array({count}, {}, ptr, base) { } explicit array(ssize_t count, const T *ptr, handle base = handle()) : array({count}, {}, ptr, base) { }
explicit array(const buffer_info &info) explicit array(const buffer_info &info, handle base = handle())
: array(pybind11::dtype(info), info.shape, info.strides, info.ptr) { } : array(pybind11::dtype(info), info.shape, info.strides, info.ptr, base) { }
/// Array descriptor (dtype) /// Array descriptor (dtype)
pybind11::dtype dtype() const { pybind11::dtype dtype() const {
...@@ -858,7 +858,7 @@ public: ...@@ -858,7 +858,7 @@ public:
if (!m_ptr) throw error_already_set(); if (!m_ptr) throw error_already_set();
} }
explicit array_t(const buffer_info& info) : array(info) { } explicit array_t(const buffer_info& info, handle base = handle()) : array(info, base) { }
array_t(ShapeContainer shape, StridesContainer strides, const T *ptr = nullptr, handle base = handle()) array_t(ShapeContainer shape, StridesContainer strides, const T *ptr = nullptr, handle base = handle())
: array(std::move(shape), std::move(strides), ptr, base) { } : array(std::move(shape), std::move(strides), ptr, base) { }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment