mirror of
https://github.com/pybind/pybind11.git
synced 2024-11-25 22:52:01 +00:00
minor: renamed argument in array constructor
This commit is contained in:
parent
35540ea35d
commit
a3906778eb
@ -234,8 +234,8 @@ public:
|
||||
array(const pybind11::dtype& dt, const std::vector<size_t>& shape, void *ptr = nullptr)
|
||||
: array(dt, shape, default_strides(shape, dt.itemsize()), ptr) { }
|
||||
|
||||
array(const pybind11::dtype& dt, size_t size, void *ptr = nullptr)
|
||||
: array(dt, std::vector<size_t> { size }, ptr) { }
|
||||
array(const pybind11::dtype& dt, size_t count, void *ptr = nullptr)
|
||||
: array(dt, std::vector<size_t> { count }, ptr) { }
|
||||
|
||||
template<typename T> array(const std::vector<size_t>& shape,
|
||||
const std::vector<size_t>& strides, T* ptr)
|
||||
|
Loading…
Reference in New Issue
Block a user