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

Function offset_at

tests/test_numpy_array.cpp:119–121  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

117}
118template <typename... Ix>
119py::ssize_t offset_at(const arr &a, Ix... idx) {
120 return a.offset_at(idx...);
121}
122template <typename... Ix>
123py::ssize_t offset_at_t(const arr_t &a, Ix... idx) {
124 return a.offset_at(idx...);

Callers 4

dataMethod · 0.85
mutable_dataMethod · 0.85
index_atMethod · 0.85
index_atFunction · 0.85

Calls 1

offset_atMethod · 0.80

Tested by

no test coverage detected