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

Method itemsize

ThirdParty/pybind11/include/pybind11/numpy.h:791–793  ·  view source on GitHub ↗

Byte size of a single element

Source from the content-addressed store, hash-verified

789
790 /// Byte size of a single element
791 ssize_t itemsize() const {
792 return detail::array_descriptor_proxy(detail::array_proxy(m_ptr)->descr)->elsize;
793 }
794
795 /// Total number of bytes
796 ssize_t nbytes() const { return size() * itemsize(); }

Callers

nothing calls this directly

Calls 2

array_descriptor_proxyFunction · 0.85
array_proxyFunction · 0.85

Tested by

no test coverage detected