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

Method byte_offset

include/pybind11/numpy.h:1337–1340  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1335
1336 template <typename... Ix>
1337 ssize_t byte_offset(Ix... index) const {
1338 check_dimensions(index...);
1339 return detail::byte_offset_unsafe(strides(), ssize_t(index)...);
1340 }
1341
1342 void check_writeable() const {
1343 if (!writeable()) {

Callers

nothing calls this directly

Calls 1

byte_offset_unsafeFunction · 0.85

Tested by

no test coverage detected