Lines Matching defs:list

167 py::list print_recarray(py::array_t<S, 0> arr) {
170 auto l = py::list();
236 py::list test_dtype_ctors() {
237 py::list list;
238 list.append(py::dtype("int32"));
239 list.append(py::dtype(std::string("float64")));
240 list.append(py::dtype::from_args(py::str("bool")));
241 py::list names, offsets, 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)));
251 return list;
324 py::list l;
343 py::list l;
361 py::list list;
364 list.append(dt1); list.append(dt2);
365 list.append(py::bool_(dt1.has_fields())); list.append(py::bool_(dt2.has_fields()));
366 list.append(py::int_(dt1.itemsize())); list.append(py::int_(dt2.itemsize()));
367 return list;
454 py::list list;
455 list.append(py::bool_(py::detail::compare_buffer_info<float>::compare(py::buffer_info(nullptr, sizeof(float), "f", 1))));
456 list.append(py::bool_(py::detail::compare_buffer_info<unsigned>::compare(py::buffer_info(nullptr, sizeof(int), "I", 1))));
457 list.append(py::bool_(py::detail::compare_buffer_info<long>::compare(py::buffer_info(nullptr, sizeof(long), "l", 1))));
458 list.append(py::bool_(py::detail::compare_buffer_info<long>::compare(py::buffer_info(nullptr, sizeof(long), sizeof(long) == sizeof(int) ? "i" : "q", 1))));
459 list.append(py::bool_(py::detail::compare_buffer_info<CompareStruct>::compare(py::buffer_info(nullptr, sizeof(CompareStruct), "T{?:x:3xI:y:f:z:}", 1))));
460 return list;