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

Function byte_offset_unsafe

include/pybind11/numpy.h:632–634  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

630
631template <ssize_t Dim = 0, typename Strides>
632ssize_t byte_offset_unsafe(const Strides &) {
633 return 0;
634}
635template <ssize_t Dim = 0, typename Strides, typename... Ix>
636ssize_t byte_offset_unsafe(const Strides &strides, ssize_t i, Ix... index) {
637 return i * strides[Dim] + byte_offset_unsafe<Dim + 1>(strides, index...);

Callers 2

unchecked_referenceClass · 0.85
byte_offsetMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected