Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/pybind/pybind11
/ data
Function
data
tests/test_numpy_array.cpp:83–85 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
81
82
template <typename... Ix>
83
arr data(const arr &a, Ix... index) {
84
return arr(a.nbytes() - a.offset_at(index...), (const uint8_t *) a.data(index...));
85
}
86
87
template <typename... Ix>
88
arr data_t(const arr_t &a, Ix... index) {
Callers
nothing calls this directly
Calls
4
arr
Function · 0.85
offset_at
Method · 0.80
nbytes
Method · 0.45
data
Method · 0.45
Tested by
no test coverage detected