Lines Matching refs:dtype

188     auto dtype = py::dtype("int32");
205 case 12: return py::array(dtype, shape, strides, vptr);
208 case 15: return py::array(dtype, shape, vptr);
214 case 22: return fill(py::array(dtype, shape, strides));
217 case 25: return fill(py::array(dtype, shape));
223 case 32: return py::array(dtype, 6, vptr);
229 case 42: return fill(py::array(dtype, 6));
238 list.append(py::dtype("int32"));
239 list.append(py::dtype(std::string("float64")));
240 list.append(py::dtype::from_args(py::str("bool")));
245 formats.append(py::dtype("int32")); formats.append(py::dtype("float64")); dict["formats"] = formats;
247 list.append(py::dtype::from_args(dict));
248 list.append(py::dtype(names, formats, offsets, 20));
249 list.append(py::dtype(py::buffer_info((void *) 0, sizeof(unsigned int), "I", 1)));
250 list.append(py::dtype(py::buffer_info((void *) 0, 0, "T{i:a:f:b:}", 1)));
261 // typeinfo may be registered before the dtype descriptor for scalar casts to work...
345 py::dtype::of<SimpleStruct>(),
346 py::dtype::of<PackedStruct>(),
347 py::dtype::of<NestedStruct>(),
348 py::dtype::of<PartialStruct>(),
349 py::dtype::of<PartialNestedStruct>(),
350 py::dtype::of<StringStruct>(),
351 py::dtype::of<ArrayStruct>(),
352 py::dtype::of<EnumStruct>(),
353 py::dtype::of<StructWithUglyNames>(),
354 py::dtype::of<ComplexStruct>()
362 auto dt1 = py::dtype::of<int32_t>();
363 auto dt2 = py::dtype::of<SimpleStruct>();
374 m.def("trailing_padding_dtype", []() { return py::dtype::of<TrailingPaddingStruct>(); });
462 m.def("buffer_to_dtype", [](py::buffer& buf) { return py::dtype(buf.request()); });
473 m.def("dtype_wrapper", [](py::object d) { return py::dtype::from_args(std::move(d)); });