MCPcopy Create free account
hub / github.com/pybind/pybind11 / data

Function data

tests/test_numpy_array.cpp:83–85  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

81
82template <typename... Ix>
83arr data(const arr &a, Ix... index) {
84 return arr(a.nbytes() - a.offset_at(index...), (const uint8_t *) a.data(index...));
85}
86
87template <typename... Ix>
88arr data_t(const arr_t &a, Ix... index) {

Callers

nothing calls this directly

Calls 4

arrFunction · 0.85
offset_atMethod · 0.80
nbytesMethod · 0.45
dataMethod · 0.45

Tested by

no test coverage detected