MCPcopy Create free account
hub / github.com/davisking/dlib / mutable_data

Method mutable_data

dlib/external/pybind11/include/pybind11/numpy.h:985–988  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

983 /// May throw if the array is not writeable.
984 template <typename... Ix>
985 void *mutable_data(Ix... index) {
986 check_writeable();
987 return static_cast<void *>(detail::array_proxy(m_ptr)->data + offset_at(index...));
988 }
989
990 /// Byte offset from beginning of the array to a given index (full or partial).
991 /// May throw if the index would lead to out of bounds access.

Callers 6

image_dataFunction · 0.45
mutable_dataMethod · 0.45
dataMethod · 0.45
loadFunction · 0.45
get_array_data_for_typeFunction · 0.45

Calls 1

array_proxyFunction · 0.85

Tested by

no test coverage detected