MCPcopy Create free account
hub / github.com/OriginQ/QPanda-2 / mutable_data

Method mutable_data

ThirdParty/pybind11/include/pybind11/numpy.h:850–853  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

848 /// May throw if the array is not writeable.
849 template <typename... Ix>
850 void *mutable_data(Ix... index) {
851 check_writeable();
852 return static_cast<void *>(detail::array_proxy(m_ptr)->data + offset_at(index...));
853 }
854
855 /// Byte offset from beginning of the array to a given index (full or partial).
856 /// May throw if the index would lead to out of bounds access.

Callers 4

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