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

Function at_t

tests/test_numpy_array.cpp:127–129  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

125}
126template <typename... Ix>
127py::ssize_t at_t(const arr_t &a, Ix... idx) {
128 return a.at(idx...);
129}
130template <typename... Ix>
131arr_t &mutate_at_t(arr_t &a, Ix... idx) {
132 a.mutable_at(idx...)++;

Callers

nothing calls this directly

Calls 1

atMethod · 0.80

Tested by

no test coverage detected