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

Function data_t

tests/test_numpy_array.cpp:88–90  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

86
87template <typename... Ix>
88arr data_t(const arr_t &a, Ix... index) {
89 return arr(a.size() - a.index_at(index...), a.data(index...));
90}
91
92template <typename... Ix>
93arr &mutate_data(arr &a, Ix... index) {

Callers

nothing calls this directly

Calls 4

arrFunction · 0.85
index_atMethod · 0.80
sizeMethod · 0.45
dataMethod · 0.45

Tested by

no test coverage detected