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

Method index_at

include/pybind11/numpy.h:1227–1229  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1225 /// May throw if the index would lead to out of bounds access.
1226 template <typename... Ix>
1227 ssize_t index_at(Ix... index) const {
1228 return offset_at(index...) / itemsize();
1229 }
1230
1231 /**
1232 * Returns a proxy object that provides access to the array's data without bounds or

Callers 5

test_index_offsetFunction · 0.80
data_tFunction · 0.80
index_atFunction · 0.80
index_at_tFunction · 0.80

Calls 2

offset_atFunction · 0.85
itemsizeFunction · 0.85

Tested by 4

test_index_offsetFunction · 0.64
data_tFunction · 0.64
index_atFunction · 0.64
index_at_tFunction · 0.64