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

Method itemsize

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

Returns the item size, i.e. sizeof(T)

Source from the content-addressed store, hash-verified

704
705 /// Returns the item size, i.e. sizeof(T)
706 constexpr static ssize_t itemsize() { return sizeof(T); }
707
708 /// Returns the shape (i.e. size) of dimension `dim`
709 ssize_t shape(ssize_t dim) const { return shape_[(size_t) dim]; }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected