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

Method itemsize

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

Byte size of a single element

Source from the content-addressed store, hash-verified

1134
1135 /// Byte size of a single element
1136 ssize_t itemsize() const { return dtype().itemsize(); }
1137
1138 /// Total number of bytes
1139 ssize_t nbytes() const { return size() * itemsize(); }

Callers

nothing calls this directly

Calls 2

dtypeClass · 0.85
itemsizeMethod · 0.45

Tested by

no test coverage detected