Lines Matching refs:shape
183 std::vector<ssize_t> shape { 3, 2 };
192 py::buffer_info buf_ndim2(vptr, 4, "i", 2, shape, strides);
193 py::buffer_info buf_ndim2_null(nullptr, 4, "i", 2, shape, strides);
202 // shape: (3, 2)
203 case 10: return arr_t(shape, strides, ptr);
204 case 11: return py::array(shape, strides, ptr);
205 case 12: return py::array(dtype, shape, strides, vptr);
206 case 13: return arr_t(shape, ptr);
207 case 14: return py::array(shape, ptr);
208 case 15: return py::array(dtype, shape, vptr);
211 // shape: (3, 2) - post-fill
212 case 20: return fill(arr_t(shape, strides));
213 case 21: return py::array(shape, strides, ptr); // can't have nullptr due to templated ctor
214 case 22: return fill(py::array(dtype, shape, strides));
215 case 23: return fill(arr_t(shape));
216 case 24: return py::array(shape, ptr); // can't have nullptr due to templated ctor
217 case 25: return fill(py::array(dtype, shape));
220 // shape: (6, )
226 // shape: (6, )