minor: renamed argument in array constructor

This commit is contained in:
Wenzel Jakob 2016-08-27 13:09:02 +02:00
parent 35540ea35d
commit a3906778eb

View File

@ -234,8 +234,8 @@ public:
array(const pybind11::dtype& dt, const std::vector<size_t>& shape, void *ptr = nullptr) array(const pybind11::dtype& dt, const std::vector<size_t>& shape, void *ptr = nullptr)
: array(dt, shape, default_strides(shape, dt.itemsize()), ptr) { } : array(dt, shape, default_strides(shape, dt.itemsize()), ptr) { }
array(const pybind11::dtype& dt, size_t size, void *ptr = nullptr) array(const pybind11::dtype& dt, size_t count, void *ptr = nullptr)
: array(dt, std::vector<size_t> { size }, ptr) { } : array(dt, std::vector<size_t> { count }, ptr) { }
template<typename T> array(const std::vector<size_t>& shape, template<typename T> array(const std::vector<size_t>& shape,
const std::vector<size_t>& strides, T* ptr) const std::vector<size_t>& strides, T* ptr)