File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -337,9 +337,8 @@ class array : public buffer {
337
337
338
338
array () : array(0 , static_cast <const double *>(nullptr )) {}
339
339
340
- template <typename Shape, typename Strides>
341
- array (const pybind11::dtype &dt, const Shape &shape,
342
- const Strides &strides, const void *ptr = nullptr ,
340
+ array (const pybind11::dtype &dt, const std::vector<size_t > &shape,
341
+ const std::vector<size_t > &strides, const void *ptr = nullptr ,
343
342
handle base = handle()) {
344
343
auto & api = detail::npy_api::get ();
345
344
auto ndim = shape.size ();
@@ -537,7 +536,7 @@ class array : public buffer {
537
536
throw std::runtime_error (" array is not writeable" );
538
537
}
539
538
540
- template < typename Shape> static std::vector<size_t > default_strides (const Shape & shape, size_t itemsize) {
539
+ static std::vector<size_t > default_strides (const std::vector< size_t > & shape, size_t itemsize) {
541
540
auto ndim = shape.size ();
542
541
std::vector<size_t > strides (ndim);
543
542
if (ndim) {
You can’t perform that action at this time.
0 commit comments