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

Method data

include/pybind11/numpy.h:1199–1201  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1197 /// beginning of the buffer. May throw if the index would lead to out of bounds access.
1198 template <typename... Ix>
1199 const void *data(Ix... index) const {
1200 return static_cast<const void *>(detail::array_proxy(m_ptr)->data + offset_at(index...));
1201 }
1202
1203 /// Mutable pointer to the contained data. If index is not provided, points to the
1204 /// beginning of the buffer. May throw if the index would lead to out of bounds access.

Calls 2

array_proxyFunction · 0.85
offset_atFunction · 0.85

Tested by

no test coverage detected