@@ -496,26 +496,13 @@ class array : public buffer {
496
496
m_ptr = tmp.release ().ptr ();
497
497
}
498
498
499
- template <typename ShapeIt, typename StridesIt,
500
- typename = detail::enable_if_t <detail::is_input_iterator<ShapeIt>::value && detail::is_input_iterator<StridesIt>::value>>
501
- array (const pybind11::dtype &dt, ShapeIt shape_first, ShapeIt shape_last, StridesIt strides_first, StridesIt strides_last,
502
- const void *ptr = nullptr , handle base = handle())
503
- : array(dt, {shape_first, shape_last}, {strides_first, strides_last}, ptr, base) { }
504
-
505
499
array (const pybind11::dtype &dt, ShapeContainer shape, const void *ptr = nullptr , handle base = handle())
506
500
: array(dt, std::move(shape), {}, ptr, base) { }
507
501
508
502
array (const pybind11::dtype &dt, size_t count, const void *ptr = nullptr ,
509
503
handle base = handle())
510
504
: array(dt, ShapeContainer{{ count }}, ptr, base) { }
511
505
512
- template <typename T, typename ShapeIt, typename StridesIt,
513
- typename = detail::enable_if_t <detail::is_input_iterator<ShapeIt>::value && detail::is_input_iterator<StridesIt>::value>>
514
- array (ShapeIt shape_first, ShapeIt shape_last, StridesIt strides_first, StridesIt strides_last,
515
- const T *ptr = nullptr , handle base = handle())
516
- : array(pybind11::dtype::of<T>(), ShapeContainer(std::move(shape_first), std::move(shape_last)),
517
- StrideContainer (std::move(strides_first), std::move(strides_last)), ptr, base) { }
518
-
519
506
template <typename T>
520
507
array (ShapeContainer shape, StridesContainer strides, const T *ptr, handle base = handle())
521
508
: array(pybind11::dtype::of<T>(), std::move(shape), std::move(strides), ptr, base) { }
@@ -747,13 +734,6 @@ template <typename T, int ExtraFlags = array::forcecast> class array_t : public
747
734
array_t (ShapeContainer shape, StridesContainer strides, const T *ptr = nullptr , handle base = handle())
748
735
: array(std::move(shape), std::move(strides), ptr, base) { }
749
736
750
- template <typename ShapeIt, typename StridesIt,
751
- typename = detail::enable_if_t <detail::is_input_iterator<ShapeIt>::value && detail::is_input_iterator<StridesIt>::value>>
752
- array_t (ShapeIt shape_first, ShapeIt shape_last, StridesIt strides_first, StridesIt strides_last,
753
- const T *ptr = nullptr , handle base = handle())
754
- : array(ShapeContainer(std::move(shape_first), std::move(shape_last)),
755
- StridesContainer (std::move(strides_first), std::move(strides_last)), ptr, base) { }
756
-
757
737
explicit array_t (ShapeContainer shape, const T *ptr = nullptr , handle base = handle())
758
738
: array(std::move(shape), ptr, base) { }
759
739
0 commit comments