Searched refs:memoryview (Results 1 - 5 of 5) sorted by relevance

/gem5/ext/pybind11/tests/
H A Dtest_buffers.py40 assert memoryview(mat).shape == (5, 4)
77 assert memoryview(matrix).shape == (5, 5)
H A Dtest_pytypes.cpp210 "memoryview"_a=py::memoryview(d["memoryview"])
225 "memoryview"_a=d["memoryview"].cast<py::memoryview>()
H A Dtest_stl_binders.py74 mv = memoryview(v) # We expose the buffer interface
H A Dtest_pytypes.py186 memoryview: b'abc'
/gem5/ext/pybind11/include/pybind11/
H A Dpytypes.h1327 class memoryview : public object { class in inherits:object
1329 explicit memoryview(const buffer_info& info) { function in class:memoryview
1353 pybind11_fail("Unable to create memoryview from buffer descriptor");
1356 PYBIND11_OBJECT_CVT(memoryview, object, PyMemoryView_Check, PyMemoryView_FromObject)

Completed in 15 milliseconds