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

Method mutable_data

include/pybind11/numpy.h:1207–1210  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1205 /// May throw if the array is not writeable.
1206 template <typename... Ix>
1207 void *mutable_data(Ix... index) {
1208 check_writeable();
1209 return static_cast<void *>(detail::array_proxy(m_ptr)->data + offset_at(index...));
1210 }
1211
1212 /// Byte offset from beginning of the array to a given index (full or partial).
1213 /// May throw if the index would lead to out of bounds access.

Callers 9

auxiliariesFunction · 0.45
return_array_cpp_loopFunction · 0.45
TEST_SUBMODULEFunction · 0.45
TEST_SUBMODULEFunction · 0.45
mutable_dataMethod · 0.45
dataMethod · 0.45
loadFunction · 0.45
get_array_data_for_typeFunction · 0.45

Calls 2

array_proxyFunction · 0.85
offset_atFunction · 0.85

Tested by 4

auxiliariesFunction · 0.36
return_array_cpp_loopFunction · 0.36
TEST_SUBMODULEFunction · 0.36
TEST_SUBMODULEFunction · 0.36